A sandstorm in China's capital Beijing drove the city's air quality index to dangerous levels on Wednesday - prompting authorities to warn people to keep their windows closed and wear dust masks.