Car veered off road and became stuck on tracks: Police