Yemen on Sunday released its only suspect in the failed plot to send two explosive-laden packages from Yemen to the U.S., as it emerged that the devices could have gone off aboard passenger planes—underlining the difficulties in finding the plotters and in plugging gaps in air security.

The surprise release came after at least one senior Yemeni official had questioned the arrest and amid accusations, which Yemen denied, that the young female suspect had been tortured.

The...