A shooting outside a New York City high school Wednesday injured two students and a school security guard, city police said.

Gunfire erupted outside Williamsburg Charter High School in Brooklyn at about 2 p.m. around dismissal time during a large fight, authorities said.

Police said the three victims' injuries were not life-threatening. Two students — a 15-year-old girl and a 17-year-old boy — were both shot in their legs and the 37-year-old security guard suffered a bullet graze wound to his neck, officials said. All three were taken local hospitals.

NEW YORK MAN WHO ATTACKED POLICE OFFICERS WITH MACHETE ON NYE PLEADS NOT GUILTY

NY Fox News graphic

Two teens and a security guard were injured in a shooting outside of a New York City high school.

No arrests have been announced. Police said it was not immediately clear if the three victims were intended targets of the lone shooter, who ran from the scene.

CLICK HERE TO GET THE FOX NEWS APP

It was the second shooting outside the school in three months, police said. A 16-year-old girl was shot in the leg about a block from the school on Dec. 8 and a 15-year-old boy was arrested, the New York Daily News reported.