Long Beach police officers saw a shooting as it happened and quickly arrested the suspected gunman Sunday night, according to the department.

Police said the officers were patrolling near Long Beach Boulevard and Anaheim Street when the shooting occurred at about 9:30 p.m.

“Officers gave the male adult suspect commands, who surrendered without incident,” the Long Beach Police Department said in a statement.

The victim was shot in the upper body and taken to a local hospital in critical but stable condition, police said.

Police identified the suspect as Kileo Taylor-Morrison, a 22-year-old resident of Bell. The LBPD said he was booked on suspicion of attempted murder and held on $2 million bail.

Police said they’re still investigating a motive.

Officers also recovered a loaded firearm, the LBPD said.

Shootings have been on the rise in Long Beach this year. For the first four months of 2024, the city averaged almost one shooting per day, according to data released by the LBPD.

Staff member Jeremiah Dobruck contributed to this report.