A Suffolk police officer used a stun gun on a teen during an altercation at a Copiague school Wednesday afternoon that was recorded by a bystander.

Assistant Police Commissioner Justin Meyers said the video captured the tail end of the altercation between the police and the 16-year-old student at Walter G. O’Connell Copiague High School. The student was arrested and charged with harassment, criminal possession of marijuana and resisting arrest.

Both Meyers and a school spokeswoman said the incident began outside school grounds around 3 p.m., after school had ended.

Meyers said police received a call about a crowd fight just off school property. Responding officers broke up the crowd and said they saw a teen smoking what appeared to be marijuana.

The teen ran onto school grounds when approached and Meyers said he had a physical altercation with two officers, one of whom was struck in the face, before he ran inside the building. Meyers said school officials located the teen and then brought the plainclothes officer to the teen, when the second altercation captured on video took place.

The bystander’s 30-second video clip shows a plainclothes officer and the teen, confirmed as a student by school officials, fighting just inside the school’s entrance. The teen’s shirt comes off as he pulls away from the officer and runs outside.

The officer yells “Don’t move” and discharges a stun gun. The student falls to ground, yelling out in pain before the officer places him in handcuffs.

advertisement | advertise on newsday

Throughout the video, another person can be heard telling the bystander to stop filming, which he refuses.

A second video clip shows the teen in handcuffs standing outside the school with another group of officers near a Suffolk County police vehicle.

The student did not appear to be seriously injured.

Meyers said the incident remains under investigation, and the unidentified teen takes night classes at the school. Arraignment information was not being released because of the student’s age.