HOUSTON — A man preparing to board a flight at the airport in Midland, Tex., on Saturday morning was detained by the authorities after explosives in military-grade wrapping were discovered in his luggage, leading to an evacuation of the terminal building, law enforcement and city officials said.