Police say they’re investigating a stabbing along Fourth Street that left a man hospitalized early Friday morning.

Corey Justin Taylor, 26, was taken into custody in connection to the attack, police said. Taylor was booked for battery, obstructing or resisting a peace officer, and assault with a deadly weapon.

According to the Long Beach Police Department, Taylor was assaulting a woman when a man stepped in to stop the attack. In turn, Taylor began attacking the man and then stabbed him in the upper body, police said.

Officers responded just after 1 a.m. to the 700 block of East Fourth Street after someone reported the crime, police said.

There, officers used less-lethal munitions and pepper spray to detain Taylor, police said. Police said those measures were necessary because, while officers had attempted to de-escalate the situation, he failed to comply with their directions.

The man who was stabbed was taken by Long Beach Fire Department personnel to a local hospital for treatment and he is expected to survive, authorities said.

Taylor was also transported to the hospital, where he was medically cleared before being taken to jail for booking, police said. Arrest records show his bail was set at $30,000.

Editor’s note: This story has been updated with more information from the Long Beach Police Department.

Trial begins for ex-Jordan High School teacher accused of sexually abusing students