The surveillance video starts with a 16-year-old running down a sidewalk in Brooklyn, with the police in pursuit.

The teenager, Kaheem Tribble, then slowed and faced an officer, Tyrane Isaac, who took a wild swing at his head. As another officer, David Afanador, approached, Mr. Tribble raised his hands; Officer Afanador swung his gun at the teenager’s mouth, breaking his teeth, prosecutors said.

The episode on Aug. 29 has led to criminal charges against the two officers, who were arraigned on Wednesday.

Officer Afanador, 33, was charged with felony-level assault, along with criminal possession of a weapon and official misconduct. Officer Isaac, 36, was charged with misconduct and misdemeanor assault.