How to efficiently defend against a dog attack