Turkish officials say that gunmen attacked a building housing the Israeli Consulate in Istanbul, sparking a gunfight that left one assailant dead and two police officers wounded.