LIMA, N.Y. -- A 19-year-old New York City man is hospitalized after being shot by a state trooper during an altercation following a traffic stop on a western New York road at which the officer was also injured.

The trooper pulled over a vehicle around 11 p.m. Wednesday on routes 5 and 20 in the Livingston County town of Lima, 20 miles south of Rochester. Police said the driver, Tyshawn Jones of Brooklyn, got out of his car and attacked the trooper.

State police Capt. Kevin Reilly said the trooper then fired three shots, hitting Jones in the shoulder and abdomen.

The trooper, who hasn't been identified, was treated at Strong Memorial Hospital for a fractured eye socket, concussion and bruises. State police said Jones was treated at the hospital for injuries that aren't life-threatening. Jones was listed in stable condition Thursday.

Police said they found a small amount of marijuana inside Jones' rental car, which had Ontario, Canada, license plates, Time Warner Cable News reported. Police said charges are pending against the driver.

This video from the Rochester Democrat & Chronicle shows a state police news conference Thursday afternoon to discuss the confrontation.

The National Desk contributed to this report.