The terror attack against a police vehicle in the Beyazit Vezneciler district on the city's European side was carried out at 8.40 a.m. local time [0540GMT], Vasip Sahin, the city's governor, said.
The Turkish president visited one of the hospital in which several of the 36 people wounded in the blast were admitted.
"The mission of our soldiers, our police and our city guards is to protect our lives and our property. It is unacceptable that these people are targeted. We will continue our fight against terrorism fearlessly," Erdogan told reporters following the visit.
Turkish Prime Minister Binali Yildirim, also told reporters in Ankara: "By planning to kill innocent citizens in the first days of Ramadan, the terrorist organizations have once again, shown that they are the enemy of human values and the same humanity. Turkey will never abandon its fight against terrorism."