Dozens of people were killed and injured in a "terrorist attack" in China's far western Xinjiang region, home to the mainly Muslim Uighur minority, state media reported Tuesday.