NEW YORK (CBSNewYork) — A 17-year-old student was allegedly caught with a gun on the first day of school in Brooklyn.

The teen set off a metal detector at City Polytechnic High School in Brooklyn Heights, police said.

READ MORE: NYPD: 5 People Hospitalized After Police-Involved Shooting In Upper Manhattan

NYPD school safety officers searched the teen’s bag and discovered the .25 caliber handgun, police said.

READ MORE: COVID Vaccine Mandate Takes Effect For New York State Health Care Workers

“Students and staff are safe, families are being notified, and we are providing the campus with additional support,” a Department of Education spokesperson said.

The student was taken into police custody.

MORE NEWS: Jury Deliberations To Resume Monday In R. Kelly Trial

The gun was not loaded.