The dog had been biting a man's arm and barking loudly.