A police officer in McKinney, Tex., who was seen on video pulling his gun on teenagers in swimsuits and shoving a young black girl’s face in the ground at a pool party has resigned, the police said Tuesday.

Cpl. David Eric Casebolt, who had been placed on administrative leave after the episode on Friday, remains under investigation, Chief Greg Conley said at a news conference. The corporal will keep his pension and benefits, the police chief said.

“Our policies, our training, our practice doesn’t support his actions,” Chief Conley said. “He came into the call out of control, and as the video shows was out of control during the incident.”

The video was taken on a cellphone and posted to YouTube, where it set off another in a recent series of debates involving race and police tactics. The police said Corporal Casebolt and other officers were responding to a call about a fight and a disturbance at a community pool in Craig Ranch, a racially diverse subdivision north of Dallas.