A bystander was shot at a San Francisco gay pride event in the city’s Civic Center when an argument between several young men turned violent Saturday, police say.

Officer Carlos Manfredi said several people were detained for questioning after the shooting that occurred around 6 p.m.

Manfredi said a 64-year-old man was caught in the crossfire and ended up getting shot in the arm. He was hospitalized and is in stable condition.

Four shots were heard in a witness video posted online. The shooting triggered a chaotic scene as dozens of people ran screaming as officers carrying handguns rushed to the scene.

Manfredi said the argument had nothing to do with the event.

A concert that was part of the weekend-long gay pride celebration across the city was ending around the time of the shooting.

The Associated Press contributed to this report