US train derails in Montana, killing three