BUFFALO, N.Y. (WIVB) — Ten people were killed and three others suffered non-life-threatening injuries and were transported to local hospitals after a mass shooting at a supermarket on Buffalo’s East Side Saturday afternoon.

The shooter was an 18-year-old white male who was heavily armed with tactical gear and was live-streaming during the mass shooting, officials said. City of Buffalo Mayor Byron Brown said the shooter is not from Buffalo and traveled “hours” from outside the area.

“This was pure evil,” Erie County Sheriff John Garcia said. “A straight-up racially motivated hate crime.”

The gunman shot 11 Black people and two white people, police said.

The shooter was identified in court Saturday evening as Payton S. Gendron of Conklin, New York, about 200 miles southeast of Buffalo.

Gendron was arraigned on one count of first-degree murder without bail.

The 18-year-old will be back in court on Thursday at 9:30 a.m. for a felony hearing.

When Gendron exited his vehicle at the supermarket, authorities said, he shot four people in the parking lot. Three of them died and one is in the hospital. The shooter entered the store and opened fire on customers.

A retired Buffalo Police officer, Aaron Salter, who was working as a security guard, shot Gendron but he was unharmed because he was wearing armor, Gramaglia said. The retired officer was shot and killed.

A law enforcement source told CBS News that the gunman had a racial slur written on his weapon. The attack is being treated as a hate crime.

Erie County District Attorney John Flynn will not confirm the existence of the shooter’s manifesto. He said they believe there was a “racial component” to the attack but won’t say more.

This attack is being investigated by the FBI as a hate crime and as violent extremism.

Erie County Executive Mark Poloncarz first tweeted confirming the shooting: “I have been advised of an active multiple shooting event at the Tops Markets on Jefferson Street in Buffalo. Police are on scene. Please stay away from the area.”

The White House issued this statement from President Joe Biden:

“The President has been briefed by his Homeland Security Advisor on the horrific shooting in Buffalo, NY this afternoon. He will continue to receive updates throughout the evening and tomorrow as further information develops. The President and the First Lady are praying for those who have been lost and for their loved ones.”

New York State Governor Kathy Hochul tweeted saying she’s monitoring the situation and has offered assistance to local law enforcement.

“I am closely monitoring the shooting at a grocery store in Buffalo,” Governor Hochul said. “We have offered assistance to local officials. If you are in Buffalo, please avoid the area and follow guidance from law enforcement and local officials.”

The Erie County Sheriff’s office tweeted this statement:

“The Erie County Sheriff’s Office wishes to pass along its condolences to the family and friends of [today’s] shooting. Sheriff Garcia has ordered all available resources and personnel to assist the @BPDAlerts.”

News 4 Reporter Marlee Tuskes

Patrick Ryan is an award-winning reporter who has been part of the News 4 team since 2020. See more of his work here and follow him on Twitter.