Chicago police said Saturday that a concealed carry holder used his gun to shoot a man who allegedly had attempted to rob him on Friday afternoon while riding a CTA Green Line train. 

The incident occurred in the 4700 block of West Lake Street at approximately 4:43 p.m. local time.

A 33-year-old man pulled out a gun and attempted to rob the 25-year-old male victim. 

However, the victim then produced a weapon of his own, and there was an exchange of gunfire.

CHICAGO MAYOR LORI LIGHTFOOT SUGGESTS STREET VENDORS DITCH CASH TO COMBAT CRIME

A CTA Green Line train

A CTA Green Line train heads east to the Chicago Loop from the Ashland station Monday, March 8, 2021.  (Brian Cassella/Chicago Tribune/Tribune News Service via Getty Images)

The victim was not hit, but authorities told Fox News Digital that the offender was struck in the leg. 

He was transported to Mt. Sinai Hospital and was initially reported in fair condition. 

A Chicago Transit Authority sign

A Chicago Transit Authority sign is seen in Chicago, Oct. 14, 2022.  (Beata Zawrzel/NurPhoto via Getty Images)

MAN WITH DISABILITIES SHOT IN THE HEAD WAITING FOR CHICAGO BUS: POLICE

The offender was taken into custody, and charges are currently pending

The department said that area detectives were investigating.

Chicago police officers i

Chicago police officers in the West Englewood neighborhood of Chicago on Aug. 11, 2022.  (Brian Cassella/Chicago Tribune/Tribune News Service via Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

The victim has a valid Illinois Concealed Carry License and Firearm Owner's Identification Card.