Immediately take the pan off the stove and allow it to cool. Ventilate the kitchen. If the smell of smoke still persists, leave a bowl of vinegar and baking soda overnight to get rid of the smoke smell.