It was narrated from Aishah that: the Messenger of Allah said "There are five vermin that may be killed outside and inside the Haram: Kities, cros, mice, scorpions, and vicious dogs". (One of the narrators Abdur-Razzaq said: "Some of our companions mentioned that Mamar would mention it from Az-Zuhri, from Salim, from his father, and from Urwah, from Aishah, from the Prophet.
The Prophet Muhammad also taught us about mercy towards all living things including animals which means we should try our best not to hurt them in any way unless absolutely necessary for our own safety or protection of property from destruction by these creatures. We must remember that Allah has given us dominion over all His creation but with this comes responsibility; we must use this power wisely and with mercy so as not to cause unnecessary suffering on any creature of Allah's creation.