Algiers: An Algerian military tribunal has convicted the nation’s long-time counter-espionage chief of breaching orders and destroying documents and sentenced him to five years in prison.

The verdict against Abdul Qader Ait Ouarabi, best known as Gen. Hassan, fell late Thursday in a closed-door trial in the Mediterranean city of Oran.

Grounds for the charges were not made public, though the Algerian press has reported accusations of arms possession and creating an armed organisation.

Hassan said Friday through an attorney, Mokrane Ait Larbi, that he plans to appeal the verdict.

Hassan was forced to retire in 2013 after leading a two-decade war against Islamists. That conflict erupted after the army cancelled 1991 legislative elections to thwart a win by an Islamist party. Ensuing violence left an estimated 200,000 dead. He was arrested in August.

He was among a group of ranking officials, including generals like himself, pushed into retirement in what the entourage of President Abdul Aziz Bouteflika portrays as a restructuring of the opaque security services. Critics, however, contend it is a settling of scores.

Top generals have traditionally been a behind-the-scenes political force in Algeria, deciding who runs for president.