Police officers went to Hanks’ home in the 300 block of South Fillmore Street on Wednesday morning to execute a search warrant as part of a child pornography investigation, but when officers announced themselves, Hanks brandished a gun.

During a struggle over the gun between the Edwardsville officer and Hanks, a Madison County deputy fired his weapon, first hitting the Edwardsville officer in the hand and then striking Hanks in his face.

Premium content for only $0.99

Child pornography and armed violence are both Class X felonies punishable by between 6 and 30 years in prison. Aggravated assault is a Class 4 felony punishable by 1 to 3 years in prison.

Both Hanks and the officer, who was injured, were treated and released from area hospitals.

Charging documents name each of the seven officers who were at Hanks’ house to serve the search warrant, but they did not list the department for each officer. The officers included the following: Detective Michael Lybarger, Detective David Vucich, Detective Brian Koberna, Detective Derrick Fitzgerald, Detective Matt Senci, Officer Amanda McKee and Detective Jacob Germann.

Edwardsville Police and Madison County officials referred questions to the Illinois State Police, who is handling the investigation. ISP officials couldn’t be reached for comment Thursday afternoon.

Hanks is in the Madison County Jail on a $1.2 million bond.

The investigation into Hanks’ activities began when Edwardsville Police received a tip from Jerseyville Police that there was possible child pornography on a computer with an IP address at Hanks’ home. Edwardsville and Jerseyville police were assisted by the Illinois Attorney General’s Internet Crimes Against Children Task Force.