At least 22 people have been killed and another 79 are injured after a crane collapsed onto a train in Thailand.