Killing harmful dogs

Q 1: I have a farm in my village where I grow vegetables, grains, and berseem (Egyptian clover). One day I noticed that some of the plants in the farm were damaged. Lately, I've discovered that dogs are behind it all. I tried many times to protect the plants, but it was to no avail. I had to kill five dogs to stop the harm they caused to my farm. Have I committed a sin by killing them, and what should I do?

A: If the case is as mentioned, there is no blame on you.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.