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: Former Senator, Presidential Nominee Bob Dole Dead at 98

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: Multiple Juveniles Arrested After Large Gathering, Fights Near Millennium Park

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

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

MORE NEWS: 6 Killed, 22 Wounded In Weekend Shootings In Chicago

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