The quake was followed by several aftershocks, official media said, adding about 87 people were injured.
Traffic is expected to resume in the affected areas as rescuers have cleared most of the roads, state-run Xinhua news agency reported.
Over 100-km of roads linking villages in Ringo, a mountainous town located at the epicentre of the quake, were damaged, affecting more than 3,400 villagers, said Wei Huakui, deputy engineer-in-chief of the armed police team responsible for clearing the roads.
The earthquake damaged 45,000 houses, as well as multiple highways, bridges and some water conservancy facilities, Wei said.