Police arrest a student who was found with a replica gun inside Barrington High School on September 16. | Photo via Snapchat

A student who was found with a pellet gun at Barrington High School earlier this month, prompting a hard lockdown, was petitioned on charges to juvenile court, authorities said.

The school went into a “full building lockdown” on September 16, according to a message sent to parents from Barrington 220 administration.

The lockdown occurred just before school started around 8:30 a.m.

School officials said a group of students notified administrators about another student carrying a gun in one of the bathrooms.

The school was put on immediate lockdown “out of an abundance of caution.”

The Barrington Police Department responded to the school.

The school resource officer was the first to locate the student, who was carrying a pellet gun underneath their clothing, according to the school.

The student was taken into police custody and the lockdown was lifted.

[Suggested Article]  Alleged drug dealer accused of selling counterfeit pills laced with fentanyl charged in homicide of boy in Antioch

Parents were seen picking up their children from the school following the lockdown.

A photo posted on social media showed a classroom door barricaded with tables during the lockdown.

Officials said there was no threat at Barrington High School and classes resumed after the lockdown.

“‘If you see something, say something’ is a phrase that we share with our students often and this is an example of how reporting can help school administrators and law enforcement take immediate action to keep everyone safe,” the school said in a statement at the time.

Barrington Police Chief David Dorn told Lake and McHenry County Scanner on Tuesday that the student had been petitioned on charges of aggravated assault and disorderly conduct.

Dorn said further details on the case were unknown because the student is a juvenile.