Two people were shot by an Illinois state trooper after one of them pulled a gun while in the backseat of a cab on the South Side Thursday night, authorities said.



State troopers had made a traffic stop near 77th Street and Vincennes Avenue in the Gresham neighborhood at about 8:30 p.m. when a Norshore Cab driver pulled up and said his passengers were refusing to pay their fare, authorities said.



As troopers spoke to the two men in the back seat, they saw what appeared to be a gun in the pocket of one of them, according to a statement from state police. The man pulled the gun out and refused to drop it after being ordered to put it down, the statement said.



One of the troopers fired and both men were hit, state police said. The man with the gun was shot twice in the lower torso, and the other person was hit in the toe, according to the statement release.



A 25-year-old man was taken to Stroger Hospital and a 23-year-old man was brought to St. Bernard Hospital, according to the Chicago Fire Department.



The 23-year-old was released from the hospital and taken into custody. The 25-year-old remained at Stroger and was reported stable.



A trooper was hospitalized for a "minor issue," according to the Fire Department, though state police said no troopers were injured.



A gun was recovered from the scene, state police said.



After the shooting, the cab was blocked off by police tape on Vincennes, surrounded by city and state police.



Jason Sledge Sr. said he was nearby in a car with his mother at the time. "All we heard was, 'Don't move, don't move, don't move,' " Sledge said.



Then they heard three gunshots, he said.



It was not known why state police had made the traffic stop. The location is two blocks west of the Dan Ryan Expressway.



This is the second shooting involving Illinois state police in Chicago in the past week. On Saturday evening, a trooper shot a 15-year-old boy in a stolen vehicle after a pursuit. The teen has been charged with trying to run down the trooper.