Loss and gain in a plasmonic nanolaser