Terrorist attack prevented, say Algerians