Oscillations in the Magnetic Field of the Solar Corona in Response to Flares near the Photosphere