A gunman who shot three people in Lakeview overnight is in custody thanks to the quick and gutsy response of Chicago police officers.

Cops on patrol heard gunfire in the 2900 block of North Sheffield at 2:45 a.m. and saw a man running with a handgun. They chased the man into an alley and took him into custody behind the 1000 block of West Oakdale.

Police found a gun nearby.

“I heard six shots,” a woman who lives nearby said. “There was a guy on the ground surrounded by police screaming for a while before an ambulance came.”

Police found the other two shooting victims nearby. None seemed thrilled about seeing the officers, according to a resident.

A 23-year-old man is being treated at St. Joseph Hospital for a gunshot wound to his foot.

A 24-year-old man and a 23-year-old woman each suffered one gunshot wound to the back of a leg. They are being treated at Advocate Illinois Masonic Medical Center.

Police take a man into custody | CWBChicago Reader Image

All of the victims are in good condition, police said.

Witnesses reported seeing a man in a blue and white hoodie run west on Oakdale after firing shots in the middle of Sheffield Avenue, just south of Oakdale.

Photos from the scene show police detaining a man in similar clothing.