The Revolutionary People's Liberation Front (DHKP-C) said on its website that one of its female militants 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 honour".
A Turkish official in Ankara had earlier told AFP on condition of anonymity that the attack "on the consulate is linked with the DHKP-C".
The group had claimed a 2013 suicide attack at the US embassy in Ankara that left one security agent dead.
Turkish authorities said one of two female militants -- who they had named as Asik -- was captured wounded, and the other was at large.
The Turkish official meanwhile said the outlawed Kurdistan Workers' Party (PKK) was behind a suicide bombing and gun attack on a police station in Istanbul that left three militants and one top police official dead.
Authorities have also arrested more than 1,300 suspects since last month in police raids nationwide targeting suspected members of the PKK, IS group as well as the DHKP-C.
The Turkish official insisted there was no contradiction between Turkey fighting both IS and the PKK, even though the two groups are themselves bitterly opposed.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app