Ali Kafi, who led Algeria for two years after the 1992 military coup that aimed to stop Islamists from winning a national election, died April 16 in Geneva. He was 84.

His death was announced by the Algerian state news agency. The cause was not reported. Algerian President Abdelaziz Bouteflika declared eight days of mourning in his honor.

Mr. Kafi led the High Committee of State from 1992 to 1994 during the opening years of Algeria’s bloody civil war with Islamic extremists.

His rule followed the assassination of Mohammed Boudiaf, who was briefly president after generals forced Chadli Bendjedid to resign.

The 1992 coup sparked a civil war with Islamic fighters that lasted more than a decade and cost 200,000 lives.

Born in 1928 in the eastern city of Constantine, Mr. Kafi was a leading member of the Algerian underground that fought for independence from France from 1954 to 1962, reaching the rank of colonel.

After Algeria became independent in 1962, he became an ambassador to Syria, Lebanon, Libya, Tunisia, Egypt, Iraq and Italy before retiring.

Mr. Kafi was called out of retirement to help solve the crisis brought on by the canceling of the second round of elections and the toppling of Benjedid. He was named part of the High Committee of State in January 1992.

With the assassination of Boudiaf, the newly named president, Mr. Kafi became the leader of the committee until Liamine Zeroual, a retired general, took power in 1994.