Help Identifying a Component
That is probably a linear voltage regulator.

However, just replacing the obviously blown part will probably not fix the device.  Quite possibly, other parts were exposed to high voltage too, just don't show any obvious signs of damage.

Toss this thing and move on.  Be more careful next time.