An attacker armed with a knife tried to enter the Israeli Embassy in Turkey on Wednesday before being shot and slightly wounded by Turkish security officials, Turkish and Israeli officials said.