Nine people were killed and 164 injured in an earthquake in China's Sichuan province, officials said on Wednesday.