Russia says it will appeal a ruling by the European Court of Human Rights that said the government failed to prevent the 2004 Beslan school massacre.