The Israeli military said ground troops entered Gaza to “create a partial buffer” between the northern and southern parts of the territory.