Mine may not be a popular response, but I'd have shot the dogs. Especially if there were kids in danger.

I love dogs more than just about anyone I've ever met, but at the end of the day they are animals. I value my life, the life of my own child, or even a stranger's child more than the life of a dog which is attacking or acting aggressively in this type of situation.