(CNN) -- An Amtrak train with 192 people aboard derailed Friday in southwestern Nebraska, the rail service said.

A few people were taken to hospitals, but there were no reports of life-threatening injuries, Amtrak said in a statement. Most were treated and released.

The train hit a part of a construction crane at a grain elevator just before 9 a.m. near the town of Benkelman, in southwestern Nebraska, near the Kansas and Colorado state lines. Both of the train's locomotives and five rail cars left the rails while the remainder of the train remained upright, Amtrak said.

Amtrak said 175 passengers and 17 crew members were aboard.

The incident happened on the California-Zephyr line, which connects Chicago and San Francisco. It runs through much of the Great Plains and Rocky Mountains on its way to the coast.

The train that derailed Friday left San Francisco area on Wednesday and was traveling to Chicago, Amtrak said.

Passengers were taken to a nearby high school to be cared for and taken east to their destinations, the rail service said.