A 37-year-old store clerk in Chicago got the second chance of a lifetime when an armed robber entered his south side store, pointed a gun at him and pulled the trigger.

The Chicago Tribune reports that at about 3:50 p.m on July 5, 2017, an armed suspect walked into the store on the 8400 block of South Cottage Grove Avenue in an attempted robbery. The suspect pointed his gun at the store clerk, but when he pulled the trigger, his gun jammed.

A friend of the clerk’s spoke to reporters after the incident, saying his friend was “seconds away from a different outcome.”

“The guy didn’t come in there to rob him, he came in to kill him and then rob him. He pointed the gun and pulled the trigger and it jammed. The clerk snatched the gun from him.”

The clerk and a co-worker were able to subdue the suspect and secure the firearm until police arrived on scene.

The clerk was treated at Advocate Trinity Hospital for cuts and bruises. Police say he was taken there in fair condition.

Charges are pending against the 20-year-old suspect.