Terrorism linked to organised crime: NSG ex-chief