Two students and a security guard were shot outside a charter school in Brooklyn Wednesday afternoon, police said.

A 15-year-old girl, a 17-year-old boy and a 37-year-old man were shot around 2 p.m. at 198 Varet St. in Williamsburg, where Williamsburg Charter High School is located, the NYPD said.

Police said the 15-year-old was shot in the right thigh, the 17-year-old was shot in the left thigh and the 37-year-old was grazed in the neck. All three were taken to nearby hospitals, where they were listed in stable condition, according to police. 

The NYPD said the 37-year-old man works as a security guard at the school.

In a statement provided to NY1, the school's accountability and development manager, Katie Manion, confirmed the two teens are students at the school. 

"WCHS can confirm two students and one staff member were injured in today's shooting outside of school. We are cooperating with the police on the on-going investigation," Manion said. "At this time, we can confirm that the two students did not receive life-threatening injuries; however, we cannot speak to the seriousness of all of the injuries."

"We would like to thank first responders for arriving quickly. We are deeply troubled by today's events," Manion added. "WCHS leadership will be meeting with government officials this week to discuss the recent uptick of violence in our community and how we can work together to keep our students and staff members safe."

The shooting occurred during large dispute between students outside the school, the NYPD said.

Police are looking for a male wearing black Adidas pants and a brown jacket.

There were no arrests in connection with the shooting as of Wednesday evening, according to the police.

"I'm deeply disturbed by reports that a shooting just occurred outside Williamsburg Charter High School on Varet St.," tweeted state Sen. Julia Salazar, who represents the area. "This is the second shooting in Williamsburg this week involving students. Outrageous. We must continue to make every effort to eliminate guns from our communities."

On Monday, two students were shot at a housing development at 198 Maujer St., one block away from the Grand Street Campus High School, a New York City public school. A 19-year-old boy was shot in the head and a 17-year-old girl was shot in the stomach.

Both victims were hospitalized in stable condition.

Hours before Wednesday’s shooting, the city's schools Chancellor David Banks testified in Albany about charter schools.  

He says more police is not necessarily the answer to school safety and instead school leadership needs to do more to protect their students.

"This is the issue that keep me up at night and it is heartbreaking for me," Banks said. “We cannot solve violence, particularly violence impacting our young people, solely through police efforts. Our schools a vital role to play in keeping our children and supported and I’m 100% committed to that work.”