A 51-year-old woman was shot and killed in San Francisco’s Tenderloin neighborhood Tuesday evening, police said, and a “person of interest” was detained in connection to the possible domestic-violence-related shooting.

Just after 8 p.m., officers responded to reports of a shooting on the 100 block of Mason Street near the corner of Eddy Street, said Officer Grace Gatpandan, a police spokeswoman.

The woman, whose name was not immediately released, was found suffering from a gunshot wound to the upper torso, Gatpandan said.

Police tried to resuscitate her, but she died at the scene.

Investigators identified a “person of interest” — a 62-year-old man — who was detained and taken to the Tenderloin police station for questioning, Gatpandan said.

Residents of a low-income housing complex on the block said the shooting happened in the building, on the seventh floor. They said they believe that the victim was the girlfriend of the man police are questioning.

Gatpandan said she could not comment on the relationship between the victim and the person of interest. A desk clerk at the building declined to comment Wednesday.

Beverly Upton, the executive director of the San Francisco Domestic Violence Consortium, said Tuesday’s killing is the latest in a string of gun-related domestic-violence homicides in San Francisco.

Lisa Broussard, 43, was fatally shot in July, allegedly by 31-year-old Everick Stephenson. In August, Silvia Lorena Montoya was arrested for allegedly shooting and killing a teenager she dated.

“We have too many guns in San Francisco in the hands of abusers and stalkers,” Upton said. “We have to really start taking guns out of those hands.”

Police asked anyone who witnessed the shooting to contact investigators by calling the department’s anonymous tip line at (415) 575-4444.

Vivian Ho and Kale Williams are San Francisco Chronicle staff writers. E-mail: vho@sfchronicle.com, kwilliams@sfchronicle.com Twitter: @VivianHo, @SFkale