Authorities acting on a tip found a 17-year-old Franklin Township High School student with a loaded 9-millimeter handgun in his backpack while on the campus.

The incident occurred on Friday, Feb. 23, at about 11:30 a.m., the Somerset County Prosecutor's Office announced Monday.

The teen, a resident of Franklin Township, was charged with two firearm possession crimes and sent to the Middlesex County Juvenile Detention Center pending a hearing.

The prosecutor's office said the initial investigation, by detectives from the office and Franklin police, has found no known threats to the students or faculty at the school.

In a statement, Somerset Prosecutor Michael Robertson commended the rapid sharing of information between Somerset County law enforcement agencies and the Franklin High School administrators to the quick recovery of the firearm without incident.

After receiving the tip, police and prosecutor's detectives went to the school on Elizabeth Avenue in Somerset and worked with officials there - including teaming up with the Franklin police school resource officer - and located the student in a classroom.

They removed the student from the classroom and escorted him and his belongings to a high school security office, the prosecutor's office statement said.

Detectives then got a search warrant to search a backpack, where they found the loaded firearm.

A day after the Feb. 14 school shooting that killed 17 in Parkland, Florida, a 14-year-old at Franklin high school was arrested on a terroristic threat charge on social media aimed at the school.

The 14-year-old Somerset County boy, who was not named, was also suspended from school, the school in a statement. The nature of that threat was not revealed.

Kevin Shea may be reached at kshea@njadvancemedia.com. Follow him on Twitter@kevintshea. Find NJ.com on Facebook.