Magnetic flux cancellation associated with a recurring solar jet observed with Hinode, RHESSI, and STEREO/EUVI