CHICAGO (AP) — Two Chicago police officers were shot and wounded early Friday by a gunman who dropped a handgun while waiting in line at a restaurant with one of the officers, picked it up and opened fire, police said.

The suspected gunman was captured nearby and the officers were taken to a hospital, Chicago police spokesman Tom Ahern said on Twitter. Their injuries were described by police as non-life-threatening and they were listed in fair condition, police said.

Chicago Police Superintendent David Brown told reporters that the officers “were ambushed” by the gunman, who fled following the shooting but was quickly caught by other officers.

The shooting happened around 3:30 a.m. at the Original Maxwell Street hot dog stand on the city’s west side as the gunman and one of the officers waited in line, Brown said.

“The offender had ordered his food and was in line in front of the officer,” Brown said. “The offender reached in his pocket to pay for his order, a gun fell out of the offender’s waistband.

All contents © copyright 2022 Associated Press. All rights reserved.