China says at least 18 people have been killed after moderate earthquake hit a mountainous area in southwest China 's Yunnan province .