Scanning tunneling microscopy and spectroscopy of a carbon nanotube