The officer was getting out of his car and gathering his items to attend a training exercise when his gun accidentally went off.