ISTANBUL (AP) — A Kurdish militant group on Thursday claimed responsibility for a suicide car-bomb attack in the Turkish capital that killed 37 people.

In a statement posted on its website, the Kurdistan Freedom Falcons said the attack in Ankara was in "revenge" for Turkish military operations against Kurdish rebels in the southeast.

The group said the attack was led by Seher Cagla Demir, codenamed Doga Jiyan, described as the first female suicide bomber in its ranks.

"We claim the operation of March 13, 2016, at 6:45 p.m. in the heart of the Republic of Turkey," the statement said.

The Turkey-based group is considered an offshoot of the Kurdistan Workers' Party, or PKK, and has carried out several attacks in the past including one in Ankara in February that killed 29 people.

The name in the claim of responsibility corresponds with the findings of Turkey's Interior Ministry, which on Tuesday had identified the suicide car bomber as a 24-year-old woman who became a Kurdish rebel in 2013 and had trained in Syria.

Germany closed its embassy in Ankara, the German school in Ankara and the consulate in Istanbul on Thursday following a security warning.

Foreign Minister Frank-Walter Steinmeier told reporters in Berlin that there were "some very concrete indications that terrorist attacks were being prepared against our facilities in Turkey." He did not say how long the facilities would be closed.

Germany, which has a large and long-standing ethnic Turkish population, has been a driving force behind a deal between the EU and Turkey to manage Europe's migration crisis. Germany contributed Tornado reconnaissance jets, tanker aircraft and a frigate to the Western coalition battling Islamic State militants.

More than 200 people have died in five suicide bombings in Turkey since July that were blamed either on the Kurdish rebels or the Islamic State group. Three of those bombings have targeted Ankara. Turkey faces a host of security threats including renewed fighting with Kurdish rebels in the southeast.

The Kurdistan Freedom Falcons, also known as TAK, warned that there would be further reprisals for any "hostile operations against the Kurdish people" or jailed PKK leader Abdullah Ocalan. It said deaths were an "inevitable consequence of war."

Since August, Turkey has been carrying out military operations and imposing 24-hour curfews on flashpoint districts of the southeast, where militants advocating Kurdish autonomy have set up barricades, dug trenches and planted explosives to keep the authorities at bay.

A curfew was lifted Wednesday in parts of the historic neighborhood in the mainly Kurdish city of Diyarbakir after security was restored, according to a statement by local administrators. But operations continued elsewhere in the southeast, with 40 people detained in Thursday morning raids, according to the state-run Anadolu Agency.

The military operations have caused vast damage to urban infrastructure and raised concerns over possible human rights abuse and civilian casualties. Tens of thousands of people have also been displaced. The decades-long conflict between the Turkish state and Kurdish rebels has claimed 40,000 lives.

In response to the surge in violence, President Recep Tayyip Erdogan wants to redefine the terms terror and terrorist so that their legal scope can expand to anyone supporting terror — including legislators, academics, journalists or activists.

On Thursday, Prime Minister Ahmet Davutoglu pushed the case to lift immunity from prosecution for all legislators, noting 506 motions are pending. Prosecutors have accused the leading members of the People's Democratic Party, parliament's third largest, of sedition for voicing support for Kurdish self-rule.

___

Geir Moulson in Berlin contributed to this report