DUMONT, N.J. (CBSNewYork/AP) – A New Jersey high school student was taken into custody after a reported social media threat that prompted a lockdown and a SWAT team response

Police say the threat was posted to social media just before noon.

“We immediately placed the school in lockdown due to the fact that the threat was a student who planned to shoot up the school,” Dumont Police Chief Mike Connor said.

Parents quickly made their way to the school, anxious and worried about their kids.

The Bergen County SWAT team responded to the school along with police from Dumont and surrounding towns. No weapons were found in the school.

But as the students hid under their desks and officers in tactical gear swarmed the school grounds, Chief Conner said police went to the 15-year-old student’s home and found a rifle. The rifle was in the home, but was not with the student.

“We did retrieve one long gun, one rifle from that house,” Connor said. “It was not with him at the school, it was not on school property.”

The Dumont Public Schools sent a message to parents saying the student was taken into custody at about 1:15 p.m. and the lockdown was lifted.

Afterward, parents said students were patted down and allowed to leave the building.

Police say who the gun was registered to, and whether or not it was legally purchased, was part of the ongoing investigation by the Bergen County Prosecutor’s Office.

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)