Israel withdrew the last of its ground forces from Gaza on Tuesday under a temporary truce with Hamas that set the stage for peace talks in Cairo.