CHICAGO (CBS) – Illinois State Police say charges have been filed against the former student involved in a shooting that happened outside Dixon High School Wednesday morning.

Matthew Milby, 19, is facing three charges of Aggravated Discharge of a Firearm, all Class X Felonies.

READ MORE: 3-Year-Old Shot In Calumet Heights

The Lee County State’s Attorney’s Office say bond is set at $2 million.

Dixon High School Resource Officer, Mark Dallas, was on duty at Dixon High School when he heard several shots fire near the school auditorium around 8 a.m. Wednesday, where students were preparing to take part in a graduation ceremony rehearsal.

Officer Dallas rushed to the area and confronted the suspect, who fled on foot outside the school.

READ MORE: At Least 5 People Killed, 17 Wounded So Far In Chicago Weekend Gun Violence; 3-Year-Old Boy Among Survivors

Milby fired several shots at Officer Dallas. The officer returned fire, shooting the suspect.

Milby was taken to a local hospital for non-life threatening injuries.

The investigation is still open and ongoing.

Police say more charges may be filed in the future.

MORE NEWS: Chicago Weather: Last Weekend Of Summer May Be Among Nicest

Dixon Police say Milby is still in the hospital under 24 hour surveillance and report he will be transported to jail upon his release.

Charlie De Mar