Former spy chief opposes government terror plans