The authorities said that thousands of buildings had been damaged, including about 150 mosques and pagodas.