A 43-year-old German man shot and killed nine people at several locations in a Frankfurt suburb overnight in attacks that appear to have been motivated by far-right beliefs, officials said Thursday.

The gunman first attacked a hookah bar in central Hanau at about 10 p.m. Wednesday, killing several people, before heading about 1.5 miles west and opening fire again, claiming more victims.

Hookah lounges are places where people gather to smoke flavored tobacco from Middle Eastern water pipes, and some of the victims appeared to be Turkish.

Witnesses and surveillance videos of the suspect's getaway car led authorities quickly to his home, near the scene of the second attack, where he was found dead near the body of his 72-year-old mother, said Peter Beuth, the interior minister for the state of Hesse.

Both the suspect and his mother had gunshot wounds, and the weapon was found on the suspect, Beuth said.

A website believed to be the suspect's is being evaluated, Beuth said.

“Initial analysis of the web page of the suspect indicate a xenophobic motivation,” he said. It does not appear, however, that the suspect was known either to police or Germany's domestic intelligence agency, he added.

He said federal prosecutors have taken over the investigation of the crime and are treating it as an act of domestic terrorism.

Germany Shooting

A police officer stands guard near the scene in front of a restaurant after a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. (Boris Roessler/dpa via AP)

Boris Roessler
Germany Shooting

Police stand guard near the scene of a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. German police say several people were shot to death in the city of Hanau on Wednesday evening. (AP Photo/Michael Probst)

Michael Probst
APTOPIX Germany Shooting

A car with dead bodies stands in front of a bar in Hanau, Germany, Thursday, Feb. 20, 2020. German police say several people were shot to death in the city of Hanau on Wednesday evening. (AP Photo/Michael Probst)

Michael Probst
APTOPIX Germany Shooting

A projectile lies on the sidewalk near a restaurant at the scene of a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. Two hookah lounges reportedly were targeted. (AP Photo/Michael Probst)

Michael Probst
Germany Shooting

A police officer looks for evidence in front of a restaurant at the scene of a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. Two hookah lounges reportedly were targeted. (AP Photo/Michael Probst)

Michael Probst
Germany Shooting

A police officer stands guard near the scene in front of a restaurant after a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. (AP Photo/Michael Probst)

Michael Probst
Germany Shooting

A police officer stands guard in front of a gambling hall near the scene after a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. (Andreas Arnold/dpa via AP)

Andreas Arnold
Germany Shooting

A police officer stands guard in front of a gambling hall near the scene after a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. (Andreas Arnold/dpa via AP)

Andreas Arnold
Germany Shooting

Forensics enter a building at the scene after a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. (Andreas Arnold/dpa via AP)

Andreas Arnold
Germany Shooting

Forensics investigate at the scene after a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. (AP Photo/Michael Probst)

Michael Probst
Germany Shooting

Forensics investigate at the scene after a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. (AP Photo/Michael Probst)

Michael Probst
Germany Shooting

Forensics and police officers investigate at the scene after a shooting in central Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in the German city of Hanau on Wednesday evening, authorities said. (AP Photo/Michael Probst)

Michael Probst
Germany Shooting

A police officer guards the road in front of a house that is searched through by police in Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in and outside two hookah lounges in a southwestern German city late Wednesday, and authorities were searching for the perpetrators. (AP Photo/Michael Probst)

Michael Probst
Germany Shooting

A special forces officer works on a robot in front of a house that is searched through by police in Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in and outside two hookah lounges in a southwestern German city late Wednesday, and authorities were searching for the perpetrators. (AP Photo/Michael Probst)

Michael Probst
Germany Shooting

A special forces officer guards the road in front of a house that is searched through by police in Hanau, Germany, Thursday, Feb. 20, 2020. Eight people were killed in shootings in and outside two hookah lounges in a southwestern German city late Wednesday, and authorities were searching for the perpetrators. (AP Photo/Michael Probst)

Michael Probst
Germany Shooting

A special forces officer guards the road in front of a house that is searched through by police in Hanau, Germany Thursday, Feb. 20, 2020. Eight people were killed in shootings in and outside two hookah lounges in a southwestern German city late Wednesday, and authorities were searching for the perpetrators. (AP Photo/Michael Probst)

Michael Probst