Superconductivity in the metallic layered compound NbTe2