Eight people were injured early Monday in a series of stabbings that appeared to be random attacks in Colorado Springs, the police said, and a suspect was taken into custody.

The police responded to reports of a stabbing at about 1:30 a.m. on Eighth Street and Limit Street, close to the city’s downtown, where they found two people had been stabbed, the police said in a statement. The officers fanned out, looking for the attacker, who was reported to have fled on walking trails through the nearby America the Beautiful Park. They found more stabbing victims there.

Just after 2 a.m., the officers found the suspect, a man who was being detained by some of the victims, the police said.

“It wasn’t until some citizens who were dealing with the victims were able to give us a lot more detail where we were able to locate where the suspect was en route to, and we were able to stop him from hurting anybody else,” Sgt. Shawn Peterson of the Colorado Springs Police told KKTV11 News.