MINNEAPOLIS (WCCO) – A 22-year-old man has admitted that he shot a 13-year-old boy in the head last fall.

The Hennepin County Attorney’s Office says Andrew Townsend pleaded guilty this week to first-degree assault in connection with the Oct. 9 shooting.

READ MORE: Vaccine Clinic To Be Held Outside U.S. Bank Stadium Ahead Of Rolling Stones Concert

According to a criminal complaint, Townsend was in a fight in the Little Earth housing complex in south Minneapolis just minutes before the 13-year-old was shot.

READ MORE: Fourth Stimulus Check: Will You See Another Relief Payment?

Surveillance video captured him at the scene, holding a gun. Witnesses said they heard a man approach the victim, insult him and shoot him in the head.

The victim survived but suffered permanent injuries.

MORE NEWS: Ask Minneapolis Mayoral Candidates Your Burning Question

Townsend is slated to be sentenced on June 9. He is expected to get a seven-year prison sentence.