The ceasefire deal is "the last chance for Gaza", Qatar's prime minister has said, adding: "Failure is not an option."