A convergence theorem for approximating minimization and fixed point problems for non-self mappings in Hadamard spaces