Police say they’ve arrested the gunman who shot a man sitting with a woman in a car a few blocks south of Long Beach Memorial hospital on Sunday. Authorities suspect the shooting was motived by a domestic dispute.

The gunfire began around 6:55 a.m. near the intersection of 25th Street and Pasadena Avenue, according to authorities. The gunfire missed the woman inside the car but hit the man, police said. The pair were able to get to the hospital where the man was treated for wounds that weren’t life-threatening, according to authorities.

After talking with the victims at the hospital, officers were able to track down the suspected gunman by Sunday evening, according to police records. The shooter had a domestic relationship with one of the victims, the LBPD said.

“Through their investigation, detectives were able to identify and locate the suspect in the City of Downey,” Long Beach police spokeswoman Jennifer De Prez said.

Police identified the suspected gunman as Nicholas Yniguez, 24. He was arrested on suspicion of attempted murder and held on $2 million bail, records show.

Jeremiah Dobruck is managing editor of the Long Beach Post. Reach him at [email protected] or @jeremiahdobruck on Twitter.