Defense Secretary Ashton B. Carter acknowledged Wednesday that the Qaeda affiliate in Yemen had exploited the tumult partly created by the Saudi-led airstrikes there to capture territory.