In this case, feel sorry that the dog turned out to be evil, not that the dog will be killed.
‘In this case, feel sorry that the dog turned out to be evil,”
You are anthropomorphizing.
There is NO such thing as an “evil dog”.
“Evil” requires that a being be spiritually sentient enough to know “good” from “evil” and is also capable of making a moral choice.
You may as well put forth the judgment that the dog “sinned”.
Only humans are capable of “sin” and “evil” because only humans possess the ability to distinguish between the two and -choose- one or the other.
The dog was being a dog.