NAPERVILLE, Ill. (AP) — A man shot and injured by suburban Chicago police after pointing what authorities initially thought was a real gun at them has been charged with aggravated assault.

DuPage County State’s Attorney Robert Berlin said in a release Friday that 27-year-old Zachary Kelley of Naperville was released last Friday from the hospital and taken to jail. He appeared in Bond Court the following day.

READ MORE: 4 Sheriff's Deputies Injured After Detainee Jerome Townsel Attacks Them At Skokie Courthouse

The release says Naperville police officers responded Jan. 23 to a report of man who had allegedly harassed a woman at a gas station. It adds the officers tried to talk with him and he pointed the weapon, later determined to be a pellet gun, at them.

READ MORE: Tax Refund Delays Likely To Grow As Filing Deadline Nears

Authorities say an officer fired his service weapon and struck Kelley.

It wasn’t clear Friday afternoon whether Kelley has an attorney.

MORE NEWS: Bill Mauldin's Iconic War Cartoons To Go On Display At Pritzker Military Museum & Library

Copyright 2019 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.