A man kicked a football on the tracks as a train drove past, making a loud noise.