As hinted by Greg Bernhardt, preserving foods against bacterial growth by smoking is not the same as saying the smoke kills the bacteria. Preservation of foods by smoking, drying, salting, etc involves removing moisture and lowering the water activity in the parlance of food preservation- this concentrates solutes such as sugars and salts to an osmotic value that inhibits bacterial growth. In combination with some pH changes towards an acidic range, additional microbes are inhibited from growing as well.