Lemme guess...
you're playing a strat, right? (i guess it could be another guitar but I've only seen this happen with strats).
One or more of your pickups need to be lowered. The magnet from your pickup is interfering with the vibration of the string. just lower the pickup you believe to be offending (sometimes you can even see it messign with the vibration of the string if you watch from the side).