He was removing it from his pocket and had it in his hands when it went off. At some point when he was running, his gun discharged.