FUQUAY-VARINA, N.C. (WNCN) — Fuquay-Varina Middle School will be closed Friday following a gun incident Thursday inside a classroom there.

The school was placed on a code-red lockdown Thursday morning after a student fired a gun at a window, Wake County Schools said in a statement.

“Our school will have a Teacher Workday tomorrow, Dec. 9, to provide our students, families and staff time and space to process this difficult situation,” the school’s principal Kris Clark said in a message on the school’s website.

Staff from the District Crisis Team will be available on campus Friday from 10 a.m. to noon to support any student or parent who needs assistance.

As school officials describe, a teacher heard the gunshot and immediately entered the classroom and saw a student holding the gun.

“The teacher encouraged the student to give her the weapon. There were several students in the classroom at this time. No one was hurt,” the statement further explained.

It was the one of the school’s assistant principals who entered the classroom and obtained and unloaded the weapon, according to the school district. The student was then “detained and secured.”

CBS 17 spoke with parents outside the school as they rushed to pick up their kids.

“I just heard just dropped off, shooting and crying,” said parent Branden Cooper.

In a statement from the Mayor of Fuquay-Varina, Blake Massengill, he said the incident shook the community.

“Thankfully, our students and teachers are safe, which is primarily due to extensive training and the swift response of all involved,” Massengill said. “Today that training served everyone well.”

The Wake County Sheriff’s Office said there was no threat directed at any students or staff in the gun incident.

At 8:03 a.m., when police received a call about the incident at 8:03 a.m., a student resource officer was already there and responded with officers to find that the juvenile had brought a firearm to school and discharged it in a classroom.

Get crime updates in your inbox – Sign up for CBS 17’s Crime Tracker newsletter

Police and the sheriff’s office confirmed there were no injuries to students, staff, or officers.

The school was placed on lockdown for a short period of time until students could be safely released to arriving parents, the sheriff’s office said.

Police have the gun and the student has been detained, according to Wake County Public Schools officials.

Outside the school Thursday morning parents waited in long lines to pick up their kids early.

Magdalene Meinhardt is a student at the school. She says she was in the hallway at the time of the shooting.

“I heard a teacher screaming someone has a gun and then I had to run to my classroom and all the kids had to run into my classroom as well,” she said.

Her dad, Jason Meinhardt, says he’s just thankful she’s okay.

“My first reaction was I gotta get to that school, I gotta figure out how to get my daughter out,” he said.

The sheriff’s office said it appears to be isolated, but it is investigating the incident along with the Wake County Public School System.

Crime scene tape was being taken down at the school at about 12:30 p.m. The sheriff’s office said it will release an additional update as further details become available.