Observation of a two-mode resonant state in a Bi2Sr2CaCu2O8+δ mesa device for terahertz emission