Children and the elderly in Beijing were advised to stay indoors as thick smog choked the city on Friday,