A Railways worker has been removed from service after he was filmed throwing garbage from a moving train onto the tracks.