Algeria's former counter-terrorism chief is sentenced to five years in prison for destroying documents and disobeying military orders.