The heat warms the air wich mixes with cooler air. The warm air and cool air have different dencities and therefore refract (bend) light differently making the hazy effect. The same thing can be seen in the exhaust of jet aircraft as they begin to start their engines.