CNN  — 

Social media posts by the 18-year-old White man suspected of shooting and killing 10 people at a Buffalo supermarket Saturday reveal he had been planning his attack for months.

Alleged gunman Payton S. Gendron of Conklin, New York, posted that he selected a particular ZIP code in Buffalo because it had the highest percentage of a Black population close enough to where he lived. Police and other officials have described the mass shooting as a hate crime.

In his posts, initially written on the chat app Discord and shared on online forum 4chan, the suspect said he visited the Tops Friendly Markets store three times on March 8 to survey the layout, as well as at the times of the day when there were the most customers. He planned his attack for mid-March, the posts say, but postponed it several times.

Of the 13 people shot, authorities say, 11 were Black. The alleged gunman was taken into custody in the immediate aftermath and is under suicide watch after pleading not guilty to a first-degree murder charge, according to authorities.

The 10 people killed ranged in age from 32 to 86, police said, among them a former police officer who tried to stop the gunman and a number of people doing their regular grocery shopping.

Here are the latest developments:

• Presidential visit: In Buffalo on Tuesday, President Joe Biden called the shooting “domestic terrorism – violence inflicted in the service of hate and the vicious thirst for power that defines one group of people being inherently inferior to any other group.” He said that people “need to say as clearly and as forcefully as we can that the ideology of White supremacy has no place in America.” He and first lady Jill Biden also visited a memorial site for the victims.

• Suspect visited supermarket the day before attack: Gendron was at the Tops store on Friday, the day before the shooting, “doing reconnaissance,” police Commissioner Joseph Gramaglia said. He was also in the city in early March, Gramaglia said.

• Manager says she told Gendron to leave: An operations manager at the market told ABC News that she saw him at the store on Friday evening and told him to leave because it looked like he was bothering customers. Gendron, sitting on a bench outside the store wearing the camouflage he would wear Saturday, left without an argument, Shonnell Harris Teague told ABC. Teague’s brother, the Rev. Tim Newkirk, told The Buffalo News that Gendron was “posing as a beggar,” and Teague told him he couldn’t panhandle there.

• Attack would have continued elsewhere had suspect not been stopped: The suspect had other “target locations” down the street, Erie County Sheriff John Garcia said. Authorities found another rifle and a shotgun in his vehicle, said Garcia, who credited the quick arrival of two police officers with preventing other attacks.

• Writing seen on suspect’s firearms: CNN has obtained a photo of two of the firearms inside the alleged gunman’s vehicle that were not used in the shooting. Writing is seen on the weapons, including the phrase “White Lives Matter,” as well as what appears to be the name of a victim of a crime committed by a Black suspect.

• Video shows gunman apologizing, sparing one person’s life: Video obtained by CNN and filmed during the shooting shows the gunman turning his weapon on a man who is curled up on the ground near what looks like a checkout lane. The man shouts, “No,” and the shooter then says “Sorry,” turns and walks away. The video ends at this point and it is unknown what happened next. It’s not clear why the man was apparently spared or why the gunman apologized.

President Joe Biden and first lady Jill Biden came to the scene Tuesday to pay respects and speak to families of the victims.

State police didn’t ask for ‘Red Flag’ order

Since the shooting, officials have looked at what they say was the suspect’s racist intent and his history.

The massacre follows other mass shootings in recent years in which authorities say a White supremacist suspect was motivated by racial hatred, including in El Paso, Texas, Charleston, South Carolina, and as far as Norway and New Zealand.

New York State Police officials did not seek a “Red Flag” order of protection against Gendron after responding to a call to a high school about a threatening statement, a state police spokesman told CNN on Tuesday.

Gendron had turned in a high school project about murder-suicides, Garcia, the Erie County sheriff has said. The Susquehanna Valley Central School District referred to it this week as an “ominous” reference to murder-suicide through a virtual learning platform last June.

The Red Flag Law, also known as the extreme risk protection order law, that was enacted on August 24, 2019, is designed to prevent anyone who shows signs of being a threat to themselves or others from purchasing a firearm, according to New York’s official website.

State police declined to go into details about why they did not seek the red flag. A law enforcement official told CNN that “the threat was general in nature and did not target the school or anyone in particular, and did not specifically mention shooting or firearms.”

Beau Duffy, a spokesperson for the state police, said on June 8, 2021, troopers responded to Susquehanna Valley High School in Conklin to investigate a report that a 17-year-old student had made a threatening statement. The student was taken into custody and transported to the hospital for a mental health evaluation, he said.

A former senior official in the state Office of Mental Health told CNN earlier this week that certain clinicians who determine if someone’s “likely to engage in conduct that would result in serious harm to self or others” are required to report that to a county health commissioner, who can report that to the state’s Division of Criminal Justice Services, which can block people from buying guns and revoke gun permits.

The official said federal law prohibits someone involuntarily committed to a mental health institution from buying a gun. It doesn’t cover someone in a mental institution “for observation,” the official said.

Data from the FBI’s NICS background check database shows that as of last December, there were more than 860,000 people in New York blocked from buying a gun due to mental health judgments – the third-highest total, after California and Pennsylvania.

The district attorney in the alleged Buffalo shooter’s home county told CNN’s Brian Todd it’s “hard to say” whether more should have been done after the suspect allegedly made the murder-suicide reference. Broome County DA Michael Korchak said his office will look at the suspect’s behavior and his relationships with relatives, teachers and other students at his high school.

Gendron wrote about the investigation in a January post on Discord. He wrote it ended when he told investigators his writings were just a stupid thing he’d done.

“Another bad experience was when I had to go to a hospital’s ER because I said the (words) “murder/suicide” to an online paper in economics class,” the post reads. He claimed he “got out of it because I stuck with the story that I was getting out of class and I just stupidly wrote that down.”

“That is the reason I believe I am still able to purchase guns. It was not a joke, I wrote that down because that’s what I was planning to do,” the post reads.

Gendron further claims that his mental health evaluation lasted just 15 minutes after he spent hours waiting in the emergency room.

When asked whether he thought the suspect shouldn’t have been legally allowed to buy guns given the fact that mental health concerns had been raised, Korchak said it is something the Legislature has to look at, saying maybe this is a test case.

CNN’s Steve Almasy, Laura Ly, Mark Morales, Shimon Prokupecz, Jason Hanna, Betsy Klein, Jenn Selva, Victor Blackwell, Amanda Watts, David Williams, Jamiel Lynch, Evan Perez, Brian Todd, Casey Tolan, Jennifer Hauser, Eric Levenson and Jon Passantino contributed to this report.