Updated 3.26pm - A 27-year-old Syrian man who blew himself up and injured 12 people in Germany last night had pledged allegiance to Islamic State, the Bavarian interior minister said this afternoon.

The man was denied asylum in Germany a year ago. He set off a bomb outside a crowded music festival in Bavaria, the fourth violent attack in Germany in less than a week.

German police said a search at his house showed he had enough material to build another bomb, raising doubts about whether he had actually planned to blow himself up. 

Twelve people were wounded, including three seriously, in the attack in Ansbach, a small town of 40,000 people southwest of Nuremberg that is also home to a U.S. Army base.

The incident will fuel growing public unease surrounding Chancellor Angela Merkel's open-door refugee policy, under which more than a million migrants have entered Germany over the past year, many fleeing wars in Afghanistan, Syria and Iraq.

"It's terrible ... that someone who came into our country to seek shelter has now committed such a heinous act and injured a large number of people who are at home here, some seriously," Bavarian Interior Minister Joachim Herrmann told reporters at a hastily convened news conference early on Monday.

"It's a further, horrific attack that will increase the already growing security concerns of our citizens. We must do everything possible to prevent the spread of such violence in our country by people who came here to ask for asylum," he said.

It was the fourth violent incident in Germany in a week, including the killing of nine people by an 18-year-old Iranian-German gunman in Munich on Friday. 

Hermann said the man, whose identity has not yet been released, had been living in Ansbach for some time. Although his application for asylum had been denied, he was not in danger of being deported immediately given the civil war raging in Syria.

The man's backpack was filled with explosives and metal parts that would have been sufficient to kill more people. He said investigators would work tirelessly to investigate the attack and fully understand the man's motives.

One U.S. intelligence official, speaking on condition of anonymity, said investigators would focus on what the bomber was doing before he left Syria, why he was denied asylum, and whether the attempted attack was personal or political.

Herrmann said the man had apparently been denied entry to the Ansbach Open music festival shortly before the explosion, which happened outside a restaurant called Eugens Weinstube.

More than 2,000 people were evacuated from the festival after the explosion, police said. A large area around the blast site remained blocked off hours later.

Ansbach resident Thomas Debinski said people panicked when they heard the explosion, especially after the events of the past week.

"Suddenly you heard a loud, a really loud bang, it was like an exploding sound, definitely an explosion," he said. "(People were) definitely panicking."

Debinski said it soon became clear that someone had set off a bomb in a rucksack.

Germany orders increased police presence after spate of attacks

Germany also announced today that it will boost its police presence at airports and train stations and carry out stop and search operations close to border areas.

"What seems particularly important to me at the moment is an increased police presence in public spaces," Interior Minister Thomas de Maiziere told a news conference in Berlin.

"I have therefore ordered that the federal police visibly increase their presence at airports and railways stations and that there are random checks, which are not visible but very effective, in border areas," he said.

Earlier yesterday, a 21-year-old Syrian refugee was arrested after killing a pregnant woman and wounding two people with a machete in the southwestern city of Reutlingen, near Stuttgart.

"After what just happened in Munich, and today in Reutlingen, what you hear about, it is very disturbing, when you know that such a thing can happen so close to you, in such a small town as Ansbach," Debinski said.

A refugee from Pakistan wielding an axe wounded five people near Wuerzbuerg, also in southern Germany, before he was shot dead by police a week ago.

Police said neither Sunday's machete attack nor Friday's shooting in Munich bore any sign of connections with Islamic State or other militant groups.

Islamic State claimed responsibility for the July 18 axe attack in Wuerzbuerg. The group also claimed responsibility for the July 14 attack France, in which a Tunisian man drove a truck into Bastille Day holiday crowds in the French Riviera city of Nice, killing 84 people.  

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.