Northern Ireland police warned people to stay away from certain parts of the city as they attempted to restore order.