UN official says Afghan security has overshadowed humanitarian needs