Tunable pinning of a superconducting vortex by a magnetic vortex