The earthquake also rocked neighboring Thailand, causing the collapse of a high-rise building under construction in Bangkok.