"We shall continue our fight against terrorists," Erdogan said. "Fearlessly and tirelessly until the end."
No one asserted responsibility for the blast, which took place on the second day of the Islamic holy month of Ramadan.
But Turkey, which is a member of the North Atlantic Treaty Organisation, is involved in multiple conflicts in the region. It backs rebels fighting Syrian President Bashar al-Assad and offers staging grounds for the US-led air coalition targeting Isis.
At the same time, it is waging battles against Kurdish separatists in both Turkey and northern Iraq as part of a decades-long fight. Last year, Turkey's air force downed a Russian fighter jet that had been flying raids against Syrian rebels. The incident raised fears of a wider war between longtime rivals Russia and Turkey, and both Russian and Western tourists stayed away from Turkey in droves.
The number of foreign visitors to Turkey dropped by 28 per cent in April, the ninth consecutive month of declining tourist arrivals, according to data released by the Ministry of Culture and Tourism in May.
It also marked the steepest decline in 17 years. Trading Economics, a global research firm, says tourism accounts for 8 per cent of employment in Turkey.
Earlier this year, Isis asserted responsibility for two suicide-bomb attacks on tourists in Istanbul, including outside the famed Blue Mosque. The group has also fired scores of rockets from Syria into the Turkish border town of Kilis, prompting retaliation from the Turkish military.
Turkey's security forces are also fighting Kurds in the country's southeast, and Kurdish guerrilla fighters have staged attacks in Istanbul, often against military and security targets. In February, a group calling itself the Kurdistan Freedom Falcons claimed responsibility for a suicide-bomb attack on military vehicles in the capital, Ankara, killing 29.
The conflict between Turkey and the Kurdistan Workers' Party, or PKK, reignited when a cease-fire broke down last year. Since then, scores have died in the violence. Last month, the UN human rights chief accused Turkey of committing grave human rights violations against civilians in its military operations against the Kurds.