As mentioned above I bet it's the sympathetic resonance of the strings between the nut and the tuning pegs. I get that as well. Put some cotton up there to see if it goes away. I know it doesn't answer the question ("how to get rid of it") but at least next time you'll know what to do to not get it in the first place.