Electrocuting insects

The fourth question of Fatwa no. 5176 What is the ruling on killing insects by electric shock, while the Prophet (peace be upon him) orders Muslims to kill and slaughter in a good way?

A: If these insects are harmful and electric shock is the only way to get rid of them, it will be permissible to use it. This will be an exceptional case of the Prophet's order to kill in a good way, since the Prophet (peace be upon him) said, Five kinds of animals are mischief-doers and may be killed even in the precincts of Ka`bah or in the state of Ihram: They are the crow, the kite, the scorpion, the mouse, and the dog known for biting people. Also, the Prophet (peace be upon him) ordered to dip the flies [if they fall] (Part No. 26; Page No. 193) into the water that may often cause their death.May Allah grant us success. May peace and blessings of Allah be upon our Prophet Muhammad, his family and Companions!