Beslan rebel committed terrorism: Russian judge