Longitudinal impact of a thin viscoelastic rod