A 15-year-old student from Frederick, Md., was arrested Tuesday after allegedly bringing a loaded handgun to Tuscarora High School, according to the Frederick County Sheriff’s Office and school district officials. The student reportedly felt that he was in danger after a brawl among students Monday.

The teen, whose name was not released because he is a minor, is being referred to the Department of Juvenile Justice on four charges, including possession of a regulated firearm under the age of 21 and bringing a gun to a school campus, according to the sheriff’s office.

Lingering tensions over the Monday fight, in which male students fought over a “boy-girl relationship that went wrong,” sparked another fight at the school Wednesday morning, said Frederick County schools spokeswoman Marita Loose. A student was sent home in connection with Wednesday’s fight, which did not involve weapons, Loose said.

On Tuesday, around 12:30 p.m., students tipped off a school resource officer that the 15-year-old had a gun at school, Loose and the sheriff’s office said. The resource officer alerted authorities. Once Frederick County sheriffs arrived, the student was removed from class and the gun was confiscated.

“The student never brandished the weapon, but he was carrying it on his person,” Loose said.

The student was later sent to the Alfred D. Noyes Children’s Center, a juvenile detention center in Rockville.

On Wednesday, there was an increased police presence at the school and counselors were on hand to talk to students. Principal Kathleen Schlappal delivered an address to the campus about the arrest. She emphasized the importance of students coming forward to report such incidents, Loose said. School officials will be reviewing safety procedures .

Loose said the district’s punishment for bringing a gun to campus is expulsion from the school system. She said disciplinary action “would be meted out.”