Broad Creek Middle School in Newport was evacuated on Thursday after a suspicious item prompted a call to the bomb squad.
The device was determined to be fake, and Carteret County deputies took a 14-year-old juvenile student into custody for bringing it to the school, according to a release from the Carteret County Sheriff's Office.
According to the release, the student bragged about the device to other students, who reported it to school personnel.
A Morehead City police dog "alerted" on the device, which prompted a call for Cherry Point's Explosive Ordnance Disposal team to respond, according to the release.
Students and staff at the school on N.C. 24 were at first evacuated to Croatan High School and then later dismissed for the day as the investigation took place.
The device was later deemed safe and did not contain any explosive material, according to the release.
The juvenile student cooperated with authorities and revealed that the device was a hoax intended for a residential subdivision and not the school, according to the release. The juvenile told authorities he got the idea for the hoax from the Internet, according to the release.
Charges against the juvenile are pending further investigation, and the student was released into the custody of his mother, according to the release.