Attacks by armed groups in Algeria have declined in recent years as the country ramps up its anti-terrorism fight.