Prime minister Benjamin Netanyahu said the Israeli military would not withdraw from the Palestinian enclave until Hamas fully disarms.