The State Department spokeswoman, Jen Psaki, said they were working on “security preparedness efforts” when they were taken into custody. The area where they were said to have been detained is not far from the main road to the Tunisian border from Tripoli, the capital.