The first minister has responded to reports of a staff member recording an SNP member they worked for.