The earthquake, with a magnitude of 6.8, affected hundreds living in Sichuan, damaging infrastructure and communications.