The announcement Friday appeared to resolve a dispute between Hamas and Israel that had imperiled a ceasefire agreement.