Welcome to EP.
When the pump was unplugged the start/run capacitor could have been left in a fully charged state and then discharged rapidly through the water. I'm surprised, though, that the water conductivity was high enough to allow sufficient current to cause an explosion.