ISTANBUL, Turkey (CNN) -- Four people were killed and five were seriously injured in a train crash in Turkey, Turkish State Railways announced Thursday. Twelve people were lightly injured, it said.
The train -- the Cumhuriyet (Republic) Express -- hit a road works machine "due to the machine's uncontrolled and unauthorized access to the railroad area," the agency said in a statement.
Rescue crews have completed their work at the scene of the crash, between Karakoy and Ayvali in Bilecik province in western Turkey, a Turkish railways official told CNN.
Turkey has a history of deadly train wrecks.
Nine people were killed when an Istanbul-to-Denizli train derailed in January 2008.
In November 2005, a passenger train collided with a truck carrying workers in southern Turkey. Nine people died and several others were hurt.
Two passenger trains collided head-on southeast of Istanbul in August 2004, killing six people and injuring as many as 40.
A month earlier, a train traveling to Denizli slammed into a minibus when the driver of the minibus ignored signals warning of the advancing train and attempted to cross the tracks, officials said. Fourteen people were killed, including five children.
The same month, a train traveling faster than it should have been derailed east of Istanbul, killing 36 people and injuring 81.
CNN's Yesim Comert and Ivan Watson contributed to this report.