Deadly China Xinjiang riots were ‘terrorist attack’: govt