mosquito

Mosquito rackets

Q: There are some tools available in the market (of the shape of a racket or other types) that are used to kill mosquitoes. Some sort of potential difference/ short circuit type of phenomena takes place and the insect gets killed with a spark like sound. Is it permissible to kill an insect in this manner by giving it current?