Yahya Sinwar replaced Hamas’ previous leader, Ismail Haniyeh, after he was killed in July in a blast in Iran that was widely blamed on Israel.