At least 39 Thais were killed in the attack, according to the Thai government.