Man arrested in shooting aboard SF Muni train that wounded rider

Anthony Ray, a 29-year-old San Francisco resident, was arrested Tuesday for opening fire on a Muni train in San Francisco on Feb. 9, police said. Anthony Ray, a 29-year-old San Francisco resident, was arrested Tuesday for opening fire on a Muni train in San Francisco on Feb. 9, police said. Image 1 of / 1 Caption Close Man arrested in shooting aboard SF Muni train that wounded rider 1 / 1 Back to Gallery

A 29-year-old man was arrested after video surveillance linked him to a shooting on a Muni train in San Francisco that left a passenger with a bullet wound to the head, officials said.

Anthony Ray, a San Francisco resident, was arrested Tuesday after officers from the Bayview Police Station reviewed the security footage from the train and recognized him from prior incidents associated with a San Francisco gang, police said.

Ray was taken into custody after plainclothes officers tracked him down on the 1500 block of Valle Vista Avenue in Vallejo, police said.

Police responded to the shooting aboard a Muni T-Line train around 2 p.m. on Feb. 9 near Third and 22nd streets in the city’s Dogpatch neighborhood.

A 22-year-old man was found with a gunshot wound to his head. Police rendered aid and promptly transported him to San Francisco General Hospital, where he is expected to recover, police said.

The day of the incident, police said the shooting broke out on the train during an argument between the gunman and a passenger. It is unclear whether the passenger who was shot is the same one who argued with the shooter.

A witness grabbed the gun from the suspect’s hand and tackled him to the ground, police said. Once the shooter lost control of the weapon, he fled the scene on foot, police said.

Police said the weapon and surveillance footage were “integral” to the identification of the suspect.

Ray was booked and is being held in San Francisco County Jail on suspicion of attempted murder, aggravated assault with a firearm, aggravated assault upon the passenger of a streetcar and carrying a loaded firearm.

His bail is set at $2 million.

Sarah Ravani is a San Francisco Chronicle staff writer. Email: sravani@sfchronicle.com Twitter: @SarRavani