A construction crane has collapsed onto a moving train in Thailand, killing at least 22 people and injuring around 80 others.