A hybrid algorithm for approximate optimal control of nonlinear Fredholm integral equations