CANANDAIGUA, N.Y. (WROC) — Officials from the Ontario County Sheriff’s Office said the Ontario County Sheriff’s emergency dispatch center received a call for a student with a semi-automatic pistol at Red Jacket High School on route 21 in Manchester around 10:19 a.m. Friday morning.

According to police, school staff disarmed and detained the 15-year-old male student before deputies arrived. The student was checking in with a staff members as a part of a routine where he would meet with staff members regularly to make sure he was ready for school.

Police say the student was upset and seemed determined to have a plan, the gun was loaded and the student had a second clip. Staff members tried to keep the student calm and relaxed. The school does not have metal detectors and police say it was the staff members that figured out there was a gun.

Ontario County Sheriff Philip Povero talked about the actions of the red jacket staff saying they “performed an act that was of a heroic nature and potentially averted a serious situation”.

During the incident the school was in a lock down phase, once the individual was in custody the school then moved into a lock out.

“There actions, again in trying to diffused the situation, in trying to keep the student calm, trying to keep the student relaxed trying to make a connection of support and understanding for this child and this child’s apparent need at this time. To have an adult converse with him in a time of need for the student that truly emphasize the empathy and compassion of the staff member.” said Povero

Police say, once the student was taken into custody, no one else was in danger.

Authorities say this was the “best possible outcome, nobody got hurt, nobody got injured,” and credited it to the sheriff departments training as it relates to this kind of situation.

The incident is under investigation and police have not yet determined a motive.

“Please understand that because this is under investigation because we’re dealing with a 15-year-old youth and because and because we’re dealing with a student — with a school community, we want to at this time preserve the privacy for the school staff that had specific contact with the student,” said Sheriff Povero.

The student is currently in custody and the Sherriff’s office will continue to provide housing for the student. The student has not yet been charged.

Watch the full press conference here:

Check back with News 8 WROC as we will continue to update this developing story.