This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

KANKAKEE, Ill. — Two men were killed and one person injured after a shooting near the Kankakee County Courthouse. Two people are in custody.

Kankakee officials said the deadly shooting was the result of an internal gang conflict.

According to Kankakee County Sheriff Mike Downey, the shooting occurred between the courthouse and jail around 9:45 a.m. Thursday morning. Three men were leaving the courthouse en route to the parking lot when an armed man opened fire, killing one.

According to officials, another man grabbed a gun from his car and the shootout continued.

Officials said two men in their 20s were shot and killed in the shooting.

From left to right: Antonio Hernandez, Victor Andrade and Miguel Andrade

Authorities identified the slain gunman as 24-year-old Antonio Hernandez of Waukegan. The fatal shooting victim was identified as 26-year-old Victor Andrade of Kankakee. A 23-year-old man, Miguel Andrade, of Kankakee, is in custody at the Jerome Combs Detention Center. Officials say he is the individual who grabbed a gun from his car and returned fire.

Both Miguel Andrade and Victor Andrade are related but officials stopped short of revealing their connection.

All three men have had run-ins with law enforcement in the past. The Chicago Tribune reports that Victor Andrade was in court Thursday for charges of possession of child pornography and sexual abuse of a child.

A 28-year-old man also remains hospitalized following the deadly shooting.

Describing the chaotic scene to WGN News, Eric Davis, a former Normal, Illinois police officer, said he knew right away there was an active shooter situation outside the courthouse. Davis said he glanced out the doors and saw two victims on the ground.

 “At first, I was inside the building by the south exit the glass doors I heard several shots not far from me,” he said. “A little bit later, I was able to peek back outside and saw a sheet covering up both the people I saw laying down, so it confirmed the worst had happened.”

Kankakee School District 111 put all schools on lockdown for a brief period of time.

Police said there is no further threat to the community.

“It’s a tragic event for the people in Kankakee,” Chief Robin Passwater with Kankakee Police Department said. “We’re going to do our best to solve it put it all together and see if we can figure out what happened here today.”