Israeli army accepts hostage deal, temporary cease-fire with Hamas