No one ever told you not to plug thing in to wall sockets with the switch on..?
This is good example why, could have been a much more serious outcome.
I'd be getting someone qualified in to replace the wall socket.
Sparks, smoke, not a good sign, especially for the future use.