(WARNING: Graphic content)

A New York state trooper attempting to make a traffic stop was dragged and injured by a driver on Long Island Wednesday afternoon.

ABC 7 reported that the trooper pulled over a vehicle driven by Kyreem Kelly, 29, after seeing him texting while driving, officials said.

When the trooper told Kelly his car would have to be towed, a violent scuffle ensued, leading to Kelly speeding away with the trooper hanging halfway out of the driver's side window.

A passing motorist started recording the incident after seeing the vehicle take off and crash into the center median.

The video shows the trooper, with a bloodied face, struggling to subdue Kelly.

Luckily, two Good Samaritans jump in to help restrain him until police and other troopers arrived on the scene.

The trooper is being treated at a local hospital for head injuries, which are not believed to be life-threatening.

Kelly was taken into custody and faces multiple felony and misdemeanor charges: aggravated assault upon a police officer, second-degree assault, first-degree reckless endangerment, resisting arrest, obstruction of governmental administration and second-degree aggravated unlicensed operation.

Watch raw video of the incident above, and see the ABC 7 report below.

90 Mph Wind Gust Tips Truck onto Wyoming Highway Patrol Car

Bystanders Cheer on Police as They Break Up Anti-Trump Protest in OR

MUST-SEE: Police Officer Saves Woman from Burning Car