Influence of an impurity on a superconductor/carbon-nanotube/superconductor system