China's capital Beijing has issued its first ever red alert for air pollution, the highest possible warning level.