Dogs as pets are not allowed in Islam but if there was a reason such for security, hunting is allowed. Rescuing a dog - or any other living creature for that matter - is a great thing, and you remember the hadith of the prophet(pbuh) of the woman who give water to a thirsty dog ... etc.