Chancellor Angela Merkel condemned the "poison" of racism Thursday after a shooter with apparent far-right beliefs killed nine people at a shisha bar and a cafe in the German city of Hanau, sending shockwaves through the nation.

All nine victims, aged between 21 and 44, had a "migrant background," although some were German citizens, chief federal prosecutor Peter Frank said.

The suspect, 43-year-old German Tobias R., was found dead at his home alongside his 72-year-old mother in what appeared to be a murder-suicide.

The shootings late Wednesday targeted bars in Hanau, according to local media
The shootings late Wednesday targeted bars in Hanau, according to local media AFP / Yann Schreiber

Prosecutor Frank said evidence, including video and a 24-page "manifesto" found on the suspect's website, "shows a very deeply racist attitude".

The killing spree fuelled alarm about Germany's emboldened far-right, coming after a neo-Nazi attack at a synagogue and the murder of a pro-migrant politician last year.

Speaking in Berlin, Merkel said: "Racism is a poison, hatred is a poison and this poison exists in our society and it is already to blame for far too many crimes."

Map of Germany locating Hanau near Frankfurt where at least eight people were killed in two shootings late Wednesday.
Map of Germany locating Hanau near Frankfurt where at least eight people were killed in two shootings late Wednesday. AFP / Jonathan STOREY

Among the dead at the two bars were "several victims of Kurdish origin", the Kon-Med association of Kurds in Germany said in a statement.

A Bosnian and a Bulgarian were also among those killed.

Six others were injured, one critically.

AFPTV / Yann SCHREIBER

The rampage started at around 10:00 pm (2100 GMT) Wednesday at the Midnight shisha bar in central Hanau, some 20 kilometres (12 miles) east of Frankfurt.

The killings shook the city of Hanau, some 20 kilometres (12 miles) east of Frankfurt
The killings shook the city of Hanau, some 20 kilometres (12 miles) east of Frankfurt AFP / Alain BOMMENEL

The gunman reportedly rang the doorbell and then shot at people in the smoking section, mass-market daily Bild said.

He fled the scene by car before opening fire at the Arena Bar & Cafe.

After a massive manhunt, the suspect was found dead at his flat, along with his mother. Both were killed by gunshot. The suspect's father was unharmed and is not being treated as a suspect.

German President Frank-Walter Steinmeier and his wife Elke Buedenbender lay wreaths close to the crime scene in Hanau
German President Frank-Walter Steinmeier and his wife Elke Buedenbender lay wreaths close to the crime scene in Hanau AFP / Odd ANDERSEN

Prosecutor Frank said investigators were trying to determine if the suspect had accomplices, or contacts in Germany or abroad who would have known about the attack plans.

Relatives and friends of the victims gathered at the Arena bar on Thursday, an AFP reporter said, tearfully embracing one another.

"I couldn't be any more upset," said Inge Bank, 82, who lives near the bar.

"We have to nip it in the bud if the Nazi party is coming back," Bank said, adding that she had lived through World War II.

German Chancellor Angela Merkel said 'racism is a poison'
German Chancellor Angela Merkel said 'racism is a poison' AFP / Tobias SCHWARZ

German President Frank-Walter Steinmeier placed a wreath of white flowers outside the Arena bar on Thursday evening before joining residents in a vigil for the victims.

Similar solidarity rallies were due to be held in Berlin, Frankfurt and dozens of other cities across Germany.

Frankfurt's Eintracht football team said it would hold a minute's silence ahead of its Europa League match against RB Salzburg.

The Berlinale film festival said it would open with a moment's silence for Hanau.

In a rambling 24-page document seen by AFP, the alleged gunman wrote that people from more than two dozen countries, including Turkey and Israel, should be "destroyed".

He also said he had never been with a woman, which he blamed on being "watched" by unspecified secret services.

King's College London counter-terrorism expert Peter Neumann tweeted that the text contained "various, but mostly extreme right views, with a do-it-yourself ideology cobbled together out of parts found on the internet".

"The pattern is clear, and not at all new," he added.

In her statement, Merkel pledged to fight back against "all those who try to divide Germany".

She cited the murders carried out by the neo-Nazi "NSU" cell between 2000-07 as well as last June's killing of pro-migrant politician Walter Luebcke, and the deadly anti-Semitic attack in Halle in October as examples of the threat posed by the far right.

German police have identified around 60 far-right adherents as "dangerous" individuals capable of carrying out a violent attack.

As condemnation of the Hanau violence poured in, the co-leader of the far-right AfD party Joerg Meuthen stood out by saying the shootings were "neither right- nor left-wing terrorism" but the actions of "a madman".

Politicians from across the political spectrum however accused the anti-Islam, anti-immigrant AfD of normalising hate speech and fomenting anti-foreigner sentiment in recent years.

Interior Minister Horst Seehofer said talks in coming days would focus on ways to improve security in light of the "very concerning" developments in the extreme right scene.