ISIS has claimed responsibility for the suicide attack in Germany on Sunday night, when a Syrian asylum seeker detonated explosives outside a music festival in Ansbach in Germany, killing himself and injuring a dozen other people.

In an official statement released by the ISIS-linked Amaq News Agency and circulated on social media, ISIS says the attacker is one of the soldiers of the Islamic State. He carried out the attack, the statement said, in response to calls by the terror group to target nationals of states that are part of the coalition fighting it in Iraq and Syria.

It was the third attack in Bavaria in recent days. German officials say the man entered the country as an asylum seeker two years ago but his application was rejected. He was known to police in Ansbach for drug-related crimes and was reported to have twice attempted suicide.

This is the second terror attack in Germany claimed by ISIS this week. On Tuesday, the group claimed responsibility for an attack on a train in Bavaria, when a 17-year-old Afghan refugee, armed with a knife and an ax, injured at least four people on a train.

In another attack, at least ten people were killed in a barrage of gunfire that began at a local McDonald’s before the gunman burst into the nearby shopping mall and proceeded to fire at shoppers. He then fled and authorities say he shot himself in the head less than a mile from the mall.