An 18-year-old white gunman shot 10 people to death and wounded three others on Saturday at a grocery store in a Black neighborhood of upstate New York before surrendering after what authorities called an act of "racially motivated violent extremism."

Authorities said the suspect, who was armed with an assault-style rifle and appeared to have acted alone, drove to Buffalo from his home several hours away to launch the afternoon attack that he broadcast in real time on social media platform Twitch, a live video service owned by Amazon.com.

Eleven of the 13 people struck by gunfire were Black, officials said. The two others were white. The racial breakdown of the dead was not made clear. Court papers named the suspect as Payton Gendron of Conklin, a town of about 5,000 people in New York's Southern Tier region near the Pennsylvania border.