Amsterdam High School was placed in a lockout Tuesday morning, mere hours after two male students allegedly posted on social media they were planning to "shoot up" the school in the afternoon.

"When it comes to violence, we have to deal with every single thing as if it is the real thing, until it is fully investigated," said Deputy Corey Rust, Montgomery County Sheriff’s Office.

The school's resource officer for the past five years, Rust says the two students were taken into custody and the lockout was lifted by 11:30 a.m.

"We were able to get the two individuals responsible, they were placed into custody, and brought back to the sheriff’s office for processing," Rust said.

"We tried to keep the day as normal as possible for the students. Instruction went on," said Dr. Raymond Colucciello, Amsterdam School District acting superintendent.

Amsterdam Police and State Troopers aided with the investigation but Rust and the district's superintendent say the participation of students was vital in helping to ID the two students accused of making the post.

"'See something, say something,' they have been taught that and it was utilized today," Rust said.

None of the district's five other buildings were included in the threat or placed in a lockout, and officers and district administrators credit fast-acting teamwork for a quick and safe resolution. 

"These are the types of things we have to deal with and we have to be able to react and do what we are trained to do," Rust said.

"Initially you worry but then as you watch people get into action and do what they are supposed to do, your fears are lessened because you know we are doing all of the right things to keep our students safe," Colucciello said.

The students arrested by the Montgomery County Sheriff's Office were 16 and 17-year-old boys. Due to them being minors, their identities are being withheld. Each is charged with making a terrorist threat.