Realization of a carbon nanotube-based triode