Uriel E. Aguilar, 35, of North Chicago.

Prosecutors say a man playing with a gun fired it into a neighboring residence in North Chicago and the bullet nearly struck a man lying on a mattress — in the same room where a baby was.

Uriel E. Aguilar, 35, of North Chicago, was charged with one count of unlawful use of a weapon and reckless discharge of a firearm, both Class 4 felonies.

Lake County Assistant State’s Attorney Kelse Banks said the North Chicago Police Department responded around 8 a.m. last Saturday to a residence for a call of shots fired.

The 911 caller told officers he was lying on an air mattress in his bedroom when he heard a loud pop.

The mattress began deflating and the man noticed the shot came from the wall he shared with his neighbor, Banks said.

The man lives at the residence with his mother, wife and children.

[Suggested Article]  School goes on soft lockdown after 29-year-old man found shot multiple times in Zion

One of the children, a baby, was in the same room in a crib when the shot was fired, Banks said.

Officers confirmed a bullet came from Aguilar’s unit into the victim’s residence.

Banks said officers knocked on Aguilar’s door several times but he did not answer.

Aguilar’s wife arrived home and allowed police officers inside the residence. They arrested Aguilar.

Aguilar told officers he was handling and playing with a gun when he pulled the trigger and it discharged, Banks said.

Banks said the man hid the handgun in a closet and hid the spent shell casing in a garbage can outside. He directed officers to the location of the gun and bullet.

Aguilar is not allowed to possess guns as he does not have a Firearm Owner’s Identification card or concealed carry license, Banks said.

[Suggested Article]  Coroner identifies man, woman in their 20s who died following shooting in Waukegan

The Lake County State’s Attorney’s Office filed a petition to detain Aguilar, calling him a real and present danger to the community.

Attorney Jason Mercure, who is representing Aguilar, said during a detention hearing that Aguilar has no violent criminal history.

Mercure said Aguilar, who works for an HVAC company in Highland Park, is not affiliated with any gangs and has never failed to appear in court.

Lake County Judge Theodore Potkonjak denied prosecutors’ petition and allowed Aguilar to be released pending trial.

The judge said it was lucky that only the air mattress was killed and not the man lying on the mattress.

He called Aguilar’s action “stupid” but did not believe he was an ongoing threat to the community.

Potkonjak said there were conditions of release that could ensure the community’s safety.

[Suggested Article]  Officials attend White House forum, highlight Lake County's gun violence prevention initiative

A status of preliminary hearing is scheduled for January 4.