If you are an electronics guy...
You could solder a wire onto the piece stuck in your lock and then pull it out. A friend of mine did this. Most keys are brass which solders VERY easily. BTW, magnets won't do a darn thing unless your key was steel. Highly unlikely.
HTH,
BP