CAIRO — Rival political leaders in Libya announced an immediate cease-fire on Friday and called for talks to demilitarize Sirte, the seaside city that has become the focus of international efforts to break the stalemated conflict in the oil-rich but dysfunctional North African nation.