Sounds like a belt issue.
either your belt is loose, or you have a bad compressor.
when you turn on the AC, it engages the compressor which adds resistance. if the belt tension is loose, that additional resistance can cause the belt to slip, and rub on the spinning parts.
if the compressor is bad, it can lock up when engaged, causing the belt to slide over it, again causing friction, and burning the rubber belt.