Where do you get the notion that he accidentally discharged his weapon? His actions look very deliberate on the video.
Poor trigger discipline; his finger was ALWAYS on the trigger. Plus, he has lost his gun and an extra magazine before, he was careless.