A freight train carrying hazardous chemicals has crashed from a bridge into the Yellowstone River in Montana.