A man who was fatally shot—allegedly by the ex-boyfriend of the woman he was living with in Long Beach—was identified today.

The Los Angeles County Coroner’s office identified the 44-year-old victim as Mario Gallegos.

The shooting was reported about 6:30 a.m. Wednesday in the 6200 block of California Avenue, about a block east of Houghton Park, according to the Long Beach Police Department.

“Upon arrival, officers located a male adult victim with life-threatening injuries to his upper body,” police said in a statement. “The suspect fled the scene before officers arrived.”

The wounded man died at a hospital, police said.

Oscar Alejandro Chan of Long Beach was arrested later that day and booked on suspicion of murder, being a convicted felon in possession of a firearm, and illegal possession of ammunition, police said. He was being held in lieu of $2 million bail.

According to police, “Homicide detectives responded to the scene to investigate and determined the suspect … arrived unannounced at the home of the victim and his former girlfriend. He entered the home, got into a physical fight with the victim, shot the victim and left the scene by unknown means prior to the officers’ arrival.”

Chan was arrested about 5:30 p.m. Wednesday in Santa Fe Springs, police said.

“Detectives believe that the shooting was related to a dispute involving Chan’s former girlfriend and the victim,” police said. “However, the motive for the shooting remains under investigation.”

Anyone with information on the case was urged to call Detectives Sean Magee or Juan Carlos Reyes at 562-570-7244. Tipsters may also call Crime Stoppers at 800-222-TIPS, or use the website lacrimestoppers.org.

Man shot to death in his home near Houghton Park, police say