Ruben Perez-Gomez, 37, of Waukegan, (inset) is charged in connection with the negligent discharge of a gun that left a person injured inside Los Compadres, 1614 Washington Street in Waukegan, early Sunday morning. | Background Photo: Google Street View

A man was arrested after prosecutors say a gun was “accidentally discharged” inside a restaurant in Waukegan early Sunday morning, leaving a man shot.

Ruben Perez-Gomez, 37, of Waukegan, was charged with reckless discharge of a firearm, a Class 4 felony, and aggravated unlawful use of a weapon, a Class 4 felony.

Lake County Assistant State’s Attorney Brooke Wanzenberg said during a bond hearing that officers with the Waukegan Police Department responded to calls of shots fired at Los Compadres de Waukegan.

Officers arrived at the restaurant, located at 1614 Washington Street, around 12:45 a.m. Sunday.

They found Perez-Gomez and the male victim, who were both outside waiting for the police to arrive.

Officers learned that Perez-Gomez and the victim had been inside the restaurant.

Wanzenberg said that Perez-Gomez told officers that an unknown man told him he had a gun with him.

[Suggested Article]  Woman killed, man seriously injured after being struck by vehicle while crossing roadway in Mundelein

Perez-Gomez reportedly asked the man to hold the weapon, which he allowed him to.

While Perez-Gomez was holding the gun, he accidentally discharged it, Wanzenberg said.

The victim was hit in the leg by the fired round.

The victim was transported by ambulance to Advocate Condell Medical Center in Libertyville.

Perez-Gomez, who does not have a valid Firearm Owner’s Identification card or concealed carry license, remained at the scene and was cooperative with police, Wanzenberg said.

Prosecutors asked Lake County Judge Veronica O’Malley to hold Perez-Gomez on a $30,000 cash bond, while his public defender asked for him to be released on a personal recognizance bond.

O’Malley, who called the incident “extremely serious” and questioned why Perez-Gomez had a gun in a restaurant, ordered him held on a $75,000 bond.

A bond review hearing is scheduled for Wednesday.