A handgun went off inside a band room at Sophie B. Wright Charter School last week, prompting the arrest of two teenage students who allegedly had the weapon, New Orleans police said.

Taykuan Walker and Derrick Noten, both 17, were seen shooting a handgun inside the bandroom on Thursday, according to the arrest report. The school called police, and when officers arrived, Walker and Noten had been detained in the office with a bag containing a gun magazine, two casings and some marijuana, the report states.

Walker and Noten both admitted to having the gun, and Noten said he was holding it when it went off by accident, the report states. Noten told police he had already taken it back to his home and where to find it in his room, and investigators found a .38 special inside the container he described to them, the report states.

The gun was determined to have been stolen, the report notes.

Noten was charged with possession of stolen things, posssesion of a firearm at school and illegal use of a weapon, and his bond was set at $35,000, according to court documents.

Walker was charged with possession of marijuana, possession of a gun at school and possession of stolen things, and his bond was set at $20,500.

Sophie B. Wright is temporarily housed at the former James Weldon Johnson campus on Monroe Street in west Carrollton while the school’s Napoleon Avenue building is being renovated.

Kevin Hunt, dean of students at the school, declined to answer any questions about the incident or to discuss security measures the school is taking.

The school has been dealing with “behavior issues” lately, according to a report by The Lens from the school’s October board meeting.