As attacks between Israel and Iran persist, the global economy could face an adverse shock if tensions aren't contained.