Three people wanted in connection with a shooting at a park were arrested Monday morning at the end of a brief pursuit east of downtown Los Angeles.

The shooting was prompted by the recent breakup of the suspect and his girlfriend, Los Angeles County Sheriff's Department investigators said. Two people were wounded in the shooting, reported at Sunshine Park in East Valinda, about 20 miles east of downtown Los Angeles.

The suspect, along with two friends, pulled up in the parking lot around 9 a.m. Monday. Armed with a gun, the suspect confronted his ex-girlfriend and her new boyfriend as they sat in another car, police said.

"He opens the door and he just starts shooting at him," said witness Joseph Torres.

Witnesses said the woman wasn't hurt, but the gunman kept firing at her new boyfriend, hitting him twice in the leg as he ran around the parking lot, begging for help and eventually turning to nearby houses when none was offered.

"He ran to our house, but our door was locked and my grandma was afraid to open the door," said neighbor Chris Tafoya.

Investigators said one of the suspects took off in the victim's black Chrysler and ditched it in a nearby alley. The three suspects then jumped into a silver Chrysler and led police on a chase, crashing on Vincent Avenue in West Covina. All three were arrested.

The Los Angeles County Sheriff's Department gang unit is taking over the investigation because one or more of the people involved have gang ties, investigators said.

The victim is in stable condition and is expected to survive.