Maybe he was spooked by the sound of gunfire and just lashed out at you because you were closeby. Birds (parrots in particular) have "displaced anger" issues. What that means is, if they are afraid or upset at something, they will direct their anger to the person closest to them and act completely out of character. They don't think like we do, and you can't expect them to know what is safe and what is dangerous. Watch your roo on a better day when external things are not so upsetting. Then judge his behavior. If he is overly agressive, I would take a spray bottle of ice cold water to spray him directly in the face when he acts out. It won't hurt him but will definitely get his attention. In my opinion (and not everyone agrees with me) if you act aggressively back to a bird that is attacking you, it only serves to make them meaner and tougher....and may physically harm them. All the big famous animal trainers use the "reward only" method to train all kinds of animals. They reward good behavior and ignore bad behavior to keep from training them to repeat it. In this case a good squirt is not punishment, it's to redirect his attention. Chickens may not be the smartest birds on earth, but they can learn and be trained if you are consistent and determined.