With international powers and Israel pressing for Hamas to be disarmed and excluded from Gaza’s future, its new leaders face an uncertain path.