Midair mix-up results in air marshals detained, investigations by 2 federal agencies