The Israeli military has said that its troops have killed Hamas leader Yahya Sinwar in Gaza.