At least 12 people have been killed after a construction crane fell on top of a moving train in northeast Thailand.