As long as a BB gun is not powerful enough to break the skin, no one will ever know except the dog. Just make sure to not hit him in the eye. Or let anyone see you shoot him.
I agree one must be cautious and not over-react, but someone who has irresponsibly infringed upon another person's right to live in peace and safety has already alienated that other person.