Electronic tech here... firstly NEVER AND I MEAN NEVER!!! reach into the water after anything electric and live (plugged in) that falls into the water. You got lucky on two counts.
1) the water (I presume fresh) had low salt and mineral content and would not conduct current as easily as salt water...
2) the seals on your new pump are probably still in very good condition.
This is one of the few times I highly recommend lifting an electronic device by the power cord (the dry end)! This gets it out fairly quickly and the water density helps provide some stress relief for the cord.
Your pump did however, draw water into the air intake to the diaphrams but this is not a problem as it will also "spit" this water into your airline and slowly evaporate with the normal air output.
The pump is more than likely a single or double diaphram model and operates on the AC line voltage and frequency being used to create an electromagnet which while reversing polarity at the 50 or 60 cycles per second, excites a permanent magnet field of the magnet attached to the diaphram arm.
Simply unplug the unit, remove the case screws and open the unit. Paper towels are all that is needed to dry the electromagnet and its associated wiring. Get all the wiring nooks and crannies. Remove your intake filter (usually some sort of foam disk or pad) and press it firmly between a few thickness of paper towel to remove excess moisture, then reinstall. Done