Impurity effects on resonant Andreev reflection in a finite-sized carbon nanotube system