He's definitely a Bernard P. Fife protege.   Guns don't go off accidentally and I can bet you that he was fiddling around with it while distracted.    Back to "Gun Safety 101" with you Mr. Secret Agentman.   Hey...that sounds like a great title for a tune.