If an animal is attacking, it isn't illegal to protect yourself or animals on your property. But to just to kill one for no reason, that's animal cruelty. You will have fines, jail time and will not be aloud to have another animal. If your having issues with an animal and no longer want it around. Just carry it to the the dog pound or call animal control.