Libyan Factions Agree to Cease-fire Deal