A white gunman who opened fire inside a Walmart in Ohio and wounded four people before killing himself may have been motivated by racist extremism, the FBI said Wednesday.

Four shoppers — two Black women, a white woman and a white man — were wounded in the attack at the Walmart in Beavercreek, a suburb of Dayton, just days before Thanksgiving, the FBI said.

Evidence, including journal writings, show the shooting may have been at least partially inspired by racially violent extremist ideology, according to the FBI.

The shooter, identified as 20-year-old Benjamin Charles Jones, of Dayton, entered the store Monday night, carrying a Hi-Point 45-caliber Carbine long gun, police said. He shot an undetermined number of rounds, leaving injured victims throughout the building, before turning the weapon on himself, authorities said.