No one was hurt in the attack, which took place on the eve of the Muslim Feast of the Sacrifice, Eid al-Adha.
"We thank the Turkish National Police for their rapid response", he added.
The incident comes as ties between Ankara and Washington are in an unprecedented crisis over the continued detention of Pastor Andrew Brunson.
U.S. President Donald Trump doubled the tariffs on aluminium and steel tariffs from Turkey, prompting Ankara to sharply hike tariffs on several American products. Three bullets hit the embassy's gate and a reinforced window, but nobody was injured.
A bullet hit a window, but there were no injuries.
Tensions between the two North Atlantic Treaty Organisation allies have been rocked amid Turkey's detention of American pastor Andrew Brunson, who is accused by the country of backing a coup attempt against Mr Erdogan in 2016. This is a clear attempt to create chaos.
Atal Bihari Vajpayee on life support system as his condition gets critical
Directed by Yash Chopra, the famous song that starred Shah Rukh Khan was shot in just 2 days. He is survived by his adopted daughter, Namita.
The ruling Justice and Development Party (AK Party) Spokesperson Ömer Çelik said that "the incident is a clear provocation". "Turkey is a safe country and all foreign missions are under protection", tweeted presidential spokesman Ibrahim Kalin.
Also, President Donald Trump has doubled the tariffs on aluminium and steel imports from Turkey, prompting Ankara to sharply hike tariffs on several United States products.
The Turkish lira has lost 38 percent of its value against the USA dollar since the beginning of the year and was hurt further by recent US tariffs on Turkish steel and aluminum.
Last week, the USA hit back at Turkey in the latest trade war feud, condemning it for doubling tariffs on certain imported goods and calling the action "a step in the wrong direction".
"The attack aimed at our economy has no difference from an attack aimed at our call to prayer or flag", he said. In 2013, a suicide bomber killed a Turkish guard and himself after detonating an explosive device outside the embassy in Ankara.
In 2008, three assailants and three Turkish police officers died in a shootout outside the Istanbul embassy.