The quake left at least four dead and 14 others injured when it hit south-western China.