© AP
San Francisco Police stand at the site of the shooting.
San Francisco cops are on the hunt for four men who opened fire outside a San Francisco high school on Tuesday afternoon — injuring four students, including one critically — as they were being let out of class, police said.

Authorities told NBC Bay Area that the suspects were wearing dark hoodies and jeans when they approached the June Jordan School for Equity on foot just after 3 p.m. and began blasting rounds at a 15-year-old girl and three young men, striking them all as they stood in the parking lot.

"It was terrifying," said Fernando Rodriguez, a 16-year-old junior at the school.

He told the San Francisco Chronicle that he heard at least six "pops" before students and faculty began running in every direction.

Authorities said it appeared that the girl who was shot may have been targeted. She was taken to San Francisco General Hospital, where she was listed in critical condition.

The other victims suffered non-life threatening injuries, police said.

The shooting unfolded as school was dismissed for the day, according to reports.

San Francisco Unified School District officials placed the facility on lockdown immediately after the gunshots rang out — tweeting that a student had been targeted by "outsiders."

The lockdown was later lifted at an hour later after the scene was declared safe by police.

June Jordan shares a campus with the City Arts and Technology High School — and many students from gathered there to take cover.

The four suspects who are wanted by police were last seen running away on foot, cops said.

An investigation is ongoing.