The Israeli military has, for the first time, acknowledged that it was behind the killing of former Hamas leader, Ismail Haniyeh, in the Iranian capital Tehran in July.