A lockdown has ended on Parliament Hill after a man "barricaded" himself inside the East Block, Ottawa police say.