A suspect in the slashing attacks of two men in Center City is in custody, police said.

The suspect has been identified by police as 26-year-old Kyle Stephens. Police say Stephens last known address was a homeless shelter in the 1200 block of Race Street.

Police sources tell NBC10 an employee of Allied Security recognized Stephens at the intersection of Allegheny Avenue and Broad Street in North Philadelphia Wednesday morning.

The security guard called 911 and Temple University police responded to the scene and took Stephens into custody. He was then taken to Central Detectives.

The first incident played out just before 5:30 a.m. Tuesday as a 23-year-old man jogged by a man carrying a shopping bag in front of the Riverloft Apartment Homes at 23rd and Walnut Streets.

"He pulled out something metallic and started chasing after me," said the jogger, who did not want to be identified.

The suspect began to yell at the jogger then charged him, knocked him to the ground then began thrusting a 3-inch blade at him, leaving the jogger with puncture wounds to the hand and torso, said police.

"I fell into the street and held out my phone," the jogger said. "He stabbed my side and hands and walked off."

The jogger told NBC10 two workers at the Riverloft ran over and scared off the attacker.

"Two men came out and said something to the assailant," the jogger said. "They took me in and called police for me."

About 15 minutes later, the same suspect slashed 42-year-old Josh McNamara in the face at 21st and Arch Streets.

“Open your ears motherf*^#@r, and keep walking,” the suspect shouted just moments before the attack, McNamara told police.

"I felt an arm and something slash at my neck," McNamara said. "I gave him a shot to the shoulder."

McNamara says the suspect then ran off without stealing anything. The suspect didn't steal anything during the first incident either, according to investigators.

Both victims were taken to Hahnemann University Hospital for treatment for non-life-threatening injuries.

"It could've been much worse," said McNamara, who only suffered a scratch on his cheek. "I'm very lucky."

A man who matches the suspect's description was kicked out of a homeless shelter at 12th and Race streets Monday night after punching another man, sources said. They also told NBC10 he was wearing the same clothing as the suspect, who was captured on surveillance video.

Stephens is expected to face a long list of charge including aggravated assault.

Anyone with information or who recognizes the attacker is asked to contact Philly Police.