Security major challenge for Afghanistan in the coming months, says UN envoy