A 22-year-old man was arrested after he tried to sexually assault a 5-year-old girl near a middle school in central Long Beach, police said on Friday.

Steven Sergio Garcia was taken into custody about 5 p.m. Thursday at Orange Avenue and 20th Street, near the Mary Butler Middle School site, said police spokeswoman Arantxa Chavarria.

Bystanders held the suspect down until police arrived, she said.

Chavarria said she could not say what the victim was doing when the crime occurred, or where exactly it happened, explaining that in the interest of protecting victims of sexual assault and domestic violence the Police Department does not share such details.

Long Beach Unified School District spokesman Chris Eftychiou said the incident did not happen on school property. Also nearby is Martin Luther King Jr. Park, which has ball fields.

Garcia, a Long Beach resident, was being held on $250,000 bail, according to jail records.

He had no prior contact with the victim, Chavarria said, and “the mental status of the suspect is being assessed.”

Detectives expect to present the case to prosecutors next week, she said.

Anyone with information about the incident was asked to contact police at 562-570-7368. Anonymous tips can be shared with Crime Stoppers at 800-222-TIPS (8477) or by using the P3 Tips smartphone app.