The Algerian government ruled out negotiating and the United States and other Western governments condemned what they called a terrorist attack on a facility, now shut down, that produces 10 percent of Algeria's gas, much of which is pumped to Europe.