The quake killed at least three people in Bangkok and buried dozens when a high-rise building under construction collapsed.