S-shaped bifurcation curve for a nonlocal boundary value problem