A woman who opened fire near the finish line of a busy marathon in San Diego has been arrested, police have said.
US media reported that a woman in her 50s was taken into custody following the incident, which took place in a car park close to the end of the California city's 2018 Rock 'n' Roll San Diego Marathon.
She held a gun to her head and fired off rounds before she was taken into custody.
There was a heavy law enforcement response near the route, but officials said after the arrest that there was no threat to the community and the race – which attracts thousands annually – was able to get back under way.
San Diego Police Department said on Twitter: "There's no longer a threat to the community. The scene is secure. The Rock and Roll Marathon has resumed."
The Active Shooter at 100 West C St. is in custody. Theres no longer a threat to the community. The scene is secure. The Rock and Roll Marathon has resumed.
— San Diego Police Department (@SanDiegoPD) June 3, 2018
Several streets had been closed while police responded to the incident, and officials confirmed one officer was injured after accidentally shooting themselves in the leg while pursing the suspect, who had taken aim at police.
Marathon organisers said: "The situation involving an active shooter who was engaged with law enforcement was not related to today's race.
"By 11.45am, the course was shut down and approximately 4,900 athletes were rerouted into a designated safe zone.
More from US
"While the race was officially stopped, law enforcement gave the clearance at 11.56am for runners to resume their progress toward the finish line and the post-race finish area, where they were able to meet up with family and friends."
The city's baseball team, the San Diego Padres, said it had also been in "close contact" with police following the incident, with a match due to get underway at their Petco Park stadium at 3.10pm local time.