Over 1,000 homes destroyed in earthquake