Since the dog was attacking you it is perfectly ok that you beat the sh*t out of it. What is more important to you, your thumb or a headache the dog is going to have for a few days?