One- and two-photon spectroscopy of a flux qubit coupled to a microscopic defect