Pakistan part of solution for Afghanistan, not problem: UN envoy