TAIPEI - An illegal foreign worker has been detained as a second suspect in Taiwan's worst train derailment in seven decades in Hualien County on the east coast that killed 50 people and injured more than 200 others, authorities said Thursday.