Police are investigating after a train struck a bike which had reportedly been thrown on the tracks by a “group of youths”.