The white gunman who shot and killed three Black people at a Dollar General store in Jacksonville, Florida, was a 21-year-old who bought his guns legally and had no criminal history, local law enforcement said Sunday.

The shooter, Ryan Christopher Palmeter, lived with his parents in a suburb of Jacksonville, Sheriff T.K. Waters told a news conference. He died of a self-inflicted gunshot wound.

Authorities have described the shooting as racially motivated, saying the man had authored ¡°several manifestos¡± for media, his parents and law enforcement detailing his hatred for Black people.