ATTICA, N.Y. (AP) — A freight train carrying automobiles has derailed in rural western New York, sending up a plume of black smoke but apparently posing no public danger.

Norfolk Southern Corp. spokesman Jon Glass says a train pulling 43 autorack cars derailed in rural Wyoming County near the village of Attica late Thursday afternoon. He says both engines and several cargo cars derailed and the two crew members were taken to a hospital with non-life-threatening injuries.

Glass says one engine was on fire and some diesel fuel spilled. The railroad is sending specialists to clean it up.

Glass says there were no hazardous materials on the train, which was heading from Buffalo to Mechanicville.

The cause of the derailment is under investigation.