Hong Kong police fired tear gas to evict anti-government protesters who had stormed and ransacked parliament.