San Francisco police said four students were injured and one of them is in critical condition after shots were fired in the parking lot of a school around the time students were being dismissed.
The gunfire erupted outside the City Arts and Technology High School and the June Jordan School for Equity, which share a campus, Officer Carlos Manfredi said.
Three of the victims ran inside the school, he said, and a fourth victim hurt in the shooting went to a hospital.
Manfredi said the shooting happened in the schools' parking lot.
The students were initially ordered to stay in place until police searched each room and determined it was not an active shooter situation, he said.
The shooting happened during the schools' dismissal time, Manfredi said.
Four male suspects wearing dark hoodies and jeans were seen leaving the area.
Investigators say they believe at least one of the injured persons was targeted.
7:15 p.m.: This article was updated with news of a fourth person injured — officials originally said three people were hurt — and about one victim's condition.