SAN FRANCISCO (KRON) — Two people have been arrested in connection to the San Francisco high school shooting that injured four students earlier this week, according to police.

The shooting was reported at June Jordan School for Equity around 3:15 p.m. Tuesday in the Excelsior District.

Gunshots were fired shortly after school got out.

The school immediately went on lockout, but it was lifted around 4 p.m.

Police say a 15-year-old girl who was shot may have been the target. The three boys shot were bystanders, police said.

Three out of the four people shot ran into the school after the shooting.

Officers searched the school first to make sure the shooters weren’t there and then took the three people to the hospital.

Another person walked into the Bayview police station. He was then taken to the hospital shortly afterwards.

The teenage girl is in critical condition after being shot in the upper body.

The three teenage boys were released from the hospital Wednesday, according to police.

San Francisco Unified School District says this is an isolated incident.

“There were four perpetrators who were targeting a particular individual, who suffered injuries and is being cared for,” said Karwin Sui of the San Francisco Unified School District.”Two other bystanders also suffered injuries.” Stay with KRON4 News for updates on this developing story on air, online and on our mobile app.