Unconventional superconductivity mediated by spin fluctuations in single-layer NbSe2