The problem is that by the account, they shot the dog for barking, not for attacking. I'll tell you for sure that if a bunch of people just dashed into my yard, my dogs would bark. They'd bark and posture and probably growl. But I don't think they'd bite. Sarama would put on a big show, but unless they tried to get into the house, that's what it would be. But she will stand her ground and bark at intruders in the yard.
Using the logic here, if a criminal comes into your yard, the cops shoot your dog. Because unless you have a really strange dog, the dog is gonna bark.