A former SNP campaign manager has admitted embezzling £5,000 while he was the chief executive of the HIV Scotland charity.