It is unlikely that the compressor itself was smoking, but the magnetic clutch that couples the compressor to the drive belt has been known to go that way! Two others in recent weeks have had AC system failures related to clutch failure, so you are not alone.
Most likely it was getting fragile, which caused the intermittent on & off situation. Do you have a gauge set for determining the maximum acceptable pressure in the system? It is possible that you overfilled it a bit, causing a pressure rise on the high side. The weakened clutch is overtaxed, slips and smokes. The clutch alone can be replaced without replacing the entire compressor, but someone should check the refrigerant level carefully to be sure that you don't wipe out the compressor next.
Most likely it was getting fragile, which caused the intermittent on & off situation. Do you have a gauge set for determining the maximum acceptable pressure in the system? It is possible that you overfilled it a bit, causing a pressure rise on the high side. The weakened clutch is overtaxed, slips and smokes. The clutch alone can be replaced without replacing the entire compressor, but someone should check the refrigerant level carefully to be sure that you don't wipe out the compressor next.