BUFFALO, N.Y. — A 17-year-old male suspect in custody in connection with the stabbing of a 14-year-old student outside McKinley High School on Wednesday faces charges of attempted murder and assault, according to the Erie County District Attorney's Office.

He was arraigned early Friday morning and will return to court on Monday, Feb. 14 at 9:30 a.m. 

Police say the student remains in critical condition while recovering from surgery at Oishei Children's Hospital. He suffered 10 stab wounds, including nine to the chest and abdomen, officials said Friday.

A security guard responding to the incident suffered a gunshot wound, but has since been treated and released from ECMC.

Police have not said whether the teenage suspect they have in custody is connected to the shooting as well, or if they are still seeking an additional suspect or suspects. 

During a news conference Friday, officials confirmed that a 13-year-old was also grazed by a bullet outside McKinley High School, but didn’t go for treatment until Thursday. 

The shooting and stabbing, according to police, happened outside the school about 20 minutes after dismissal, at around 3:45 p.m. Wednesday. They say there was some sort of dispute involving multiple people beforehand.

The security guard, identified as Bradley Walker, on Thursday gave Spectrum News 1 his account of what happened, and also gave an update after being discharged from the hospital:

"A group of kids ran towards a student and a fight broke out. I ran towards the fight and told the kids to get back. I heard a gunshot, fell down, and realized I was shot. I told the kids to get out of here."

"I'm feeling good. I'm in such good spirits. This makes me really look at my friends and family with even more love because you just never know when you may not see them again. I'm feeling blessed."

After transitioning to remote learning for the rest of the week, staff will report back on Monday and students will come back in person on Tuesday, but in a phased return broken down by grade.

Following the incident, the district has implemented a new district-wide support program. More administrative staff will greet students when they walk into school, counselors will be available to break students up into small groups in order to share their thoughts and feelings and safe spaces will be provided if they need one-on-one help.

Buffalo Public Schools Superintendent Dr. Kriner Cash says two school resource officers will be assigned to McKinley through the end of March.

BPD leaders say 100 students were inside the building at the time, but were later released to their parents and guardians.

Many students and parents never imagined this type of violence would happen this close to home.

"I was at work and she called and I couldn't answer, and then her dad called and that's when I figured something was wrong," parent Sharon Bell said.

There were many embraces and people thanking God that they were reunited safely. At the same time, there was frustration that something like this even happened in the first place.

"Somebody started running and the principal asked, 'why are you guys are running?' And they said, 'someone's shooting the school,'" student Isabella Rodriguez said. "[I] quickly tried to call my mom, my sister, in case of anything."

Students and teachers were hidden in the cafeteria, bathrooms and classrooms. As they awaited the all clear, parents, siblings and more gathered just beyond the crime scene tape.

Two and a half hours after the shooting, students started to trickle out, greeted with open arms, big smiles and tears of joy.

"There's going to be worry every day like when we send them to school it is going to happen? I need to be alert,” family member Madeline Montez said. “We're always working and now going to be more alert than before, and probably change from another school."

Mayor Byron Brown on Twitter Wednesday afternoon called the impact of the shooting "incalculable":

"Today represents a very dark day in our City. As of last night, eight school shootings had occurred across the United States in 2022. Now, the City of Buffalo has the horrible distinction of becoming the ninth.

The impact of what happened at McKinley High School late this afternoon is still incalculable. Families are shaken, educators and students are distraught, and many of our children are scared. We will provide more details as they become available.

The City of Buffalo is here for all of those who are directly impacted by this shooting, and we are here for all of those across our City who have experienced or been impacted by gun violence. We will not rest until we stop this violence."

New York Gov. Kathy Hochul, a Buffalo native, released a statement Wednesday night, saying:

"My heart is with my hometown of Buffalo tonight. I’m praying for the victims and their families, the members of the McKinley High School community, and our brave first responders who responded to this horrific event."

Erie County District Attorney John Flynn also released a statement Thursday, saying:

"As a parent, I am shaken by the violence that occurred yesterday outside of McKinley High School. I pray that the student and the security officer who were injured make a full and quick recovery.

My office along with the Buffalo Police Department, Buffalo Public School District and all assisting law enforcement agencies are aggressively investigating this incident. My thoughts are with the entire McKinley Vocational High School community as we work to uncover who is responsible for this horrific crime.

I am committed to keeping our schools safe, and I am deeply concerned about the increasing incidents of gun violence involving young people in our community. Just last week, my office held two panel discussions at another Buffalo Public School to send a message to our youth about the consequences of gun violence. As they continue to heal from this tragedy, my office will continue to be a resource for the Buffalo Public School District and all school districts in Erie County, so we can work together to keep our schools safe."

The FBI, State Police and Buffalo Police all responded to the scene.

This is a developing story and will be updated as more information becomes available.