Turkish flag
Turkish flagIsrael news photo: Flash 90

A radical Marxist group has claimed responsibility for a gun attack on the US consulate in Istanbul.

The Iranian-linked Revolutionary People's Liberation Front (DHKP-C) said on its website that one of its female terrorists carried out the attack.

It named her as Hatice Asik and said she was later arrested and taken to hospital after being shot by police.

"Our struggle will continue until imperialism and its collaborators leave our country and every parcel of our homeland is cleared of US bases," it said, praising Asik as "our honor."

The statement followed claims by the Turkish government fingering the DHKP-C as the culprits.

"The attack on the consulate is linked with the DHKP-C," a Turkish official told AFP on condition of anonymity, referring to the Revolutionary People's Liberation Front (DHKP-C) which claimed a 2013 suicide attack at the US embassy in Ankara.

The same official said the outlawed Kurdistan Workers' Party (PKK) was behind a suicide attack on a police station in Istanbul that resulted in clashes that left three terrorists and one top police official dead.

Two gunmen opened fire on the US consulate Monday morning. The attackers fled when police shot back, broadcaster CNN Turk said, adding that there were no casualties.

The attack followed a bombing at a police station in Istanbul earlier on Monday, which left at least one officers dead and four injured. Three terrorists were also killed in the attack.

The Daily Sabah reported that one of the suspects in the gunfire outside the US consulate is a woman.

Turkey launched what officials described as a "synchronized war on terror" last month, including air strikes against Islamic State fighters in Syria and Kurdish militants in northern Iraq, and the detention of hundreds of terror suspects within Turkey.

The far-leftist Revolutionary People's Liberation Army-Front (DHKP-C) claimed responsibility for a suicide bombing at the US embassy in Ankara in 2013 which killed a Turkish security guard.