Authorities in Mexico said on Saturday that a faulty electric transformer may have caused an explosion that killed at least 23 people in a supermarket.