An earthquake of magnitude 6.8 in southwestern Sichuan province in China has killed seven people, state television CCTV reported on Monday.