CHICAGO (CBS) — A man has been charged with attempted murder, after police said he fired at officers before they fired back and struck him in Little Village.

Walter Dennard, 19, of Englewood, was charged Tuesday, police said.

READ MORE: Doggy Daycare Owner Appalled After State's Attorney Declines To Prosecute State Inspector Jose Guillen, Who Was Caught On Camera Groping Her

The incident happened Sunday afternoon at 2728 W. 21st St., at Fairfield Avenue, police said.

Just after 3 p.m., officers saw someone acting suspiciously around 21st Street and Washtenaw Avenue – holding his side as he walked as if he might have a gun, according to Chicago Police Patrol Bureau Chief Fred Waller.

READ MORE: Retired CPD Officer Richard Haljean Struck, Killed While Crossing Street In Hit-And-Run In Edison Park

The man started to run, and officers chased him, Waller said. As they chased him, he took out a gun and fired at the officers, Waller said.

The man was wounded in the shoulder and the leg, but kept running, Waller said. He tried to hide near 21st Street and California Avenue, but officers found him, Waller said.

The gun he was using was found on top of a nearby garage, Waller said.

MORE NEWS: Disney On Ice Has Multiple Levels Of Precautions As They Perform Amid Pandemic

Dennard was taken to Mount Sinai Hospital and was still being treated there Monday night.