Chesapeake police said that Andre Bing purchased the gun he used in the shooting hours before he opened fire, The Associated Press reported.
The weapon was a legally-purchased 9 mm handgun, police said.
Officials added that he had no criminal history, CNN reported.
They also said he had a note that listed grievances he had against co-workers on his phone. He had it in a file named “Death Note,” which said that the co-workers had harassed and mocked him, police said. Officials shared the note on the city’s official Twitter account.
The message ended with “My God forgive me for what I’m going to do...”, which can be read here.
Officials did not say when the note was written by Bing, who had worked for Walmart since 2010 and had been named a team lead, The Washington Post reported.
The shooting left six people and the gunman dead — Randy Blevins, 70; Lorenzo Gamble, 43; Tyneka Johnson, 22; Brian Pendleton, 39; Kellie Pyle, 52, and Fernando Chavez-Barron, 16, who was identified by police on Friday.
Several people were injured, but at least two are still hospitalized, CNN reported.
Police said Bing shot and killed himself.
One person was listed in critical condition as of Thursday, while a second was in “fair/improving condition.” A third person was released from Sentara Norfolk General Hospital, CNN reported.
7 killed, including suspect at Virginia Walmart CHESAPEAKE, VA - NOVEMBER 23: A police line is seen at the site of a fatal shooting in a Walmart on November 23, 2022 in Chesapeake, Virginia. Following the Tuesday night shooting, six people were killed, including the suspected gunman. (Photo by Nathan Howard/Getty Images) (Nathan Howard/Getty Images)
7 killed, including suspect at Virginia Walmart CHESAPEAKE, VA - NOVEMBER 23: A member of the FBI pushes a shopping cart at the site of a fatal shooting in a Walmart on November 23, 2022 in Chesapeake, Virginia. Following the Tuesday night shooting, six people were killed, including the suspected gunman. (Photo by Nathan Howard/Getty Images) (Nathan Howard/Getty Images)
7 killed, including suspect at Virginia Walmart CHESAPEAKE, VA - NOVEMBER 23: A police tape is seen at the site of a fatal shooting in a Walmart on November 23, 2022 in Chesapeake, Virginia. Following the Tuesday night shooting, six people were killed, including the suspected gunman. (Photo by Nathan Howard/Getty Images) (Nathan Howard/Getty Images)
7 killed, including suspect at Virginia Walmart CHESAPEAKE, VA - NOVEMBER 23: A memorial is seen at the site of a fatal shooting in a Walmart on November 23, 2022 in Chesapeake, Virginia. Following the Tuesday night shooting, six people were killed, including the suspected gunman. (Photo by Nathan Howard/Getty Images) (Nathan Howard/Getty Images)
7 killed, including suspect at Virginia Walmart VIRGINIA, USA - NOVEMBER 23: Screen grab from a video shows a police car after at least 10 people were killed in a gun attack at a supermarket in Virginia, USA on November 23, 2022. (Photo by Yasin Ozturk/Anadolu Agency via Getty Images) (Anadolu Agency/Anadolu Agency via Getty Images)