WASHINGTON — An American woman detained for weeks in Afghanistan by the Taliban has been released from custody, according to a person familiar with the matter and a social media post Saturday from a longtime U.S. diplomat.

Faye Dail Hall, who was detained in February on charges of using a drone without authorization, was released as part of a deal that Qatari negotiators helped broker, said the person, who spoke to The Associated Press on the condition of anonymity due to the sensitivity of the negotiations.

The person said that Hall was taken to the Qatari Embassy in Kabul, the Afghan capital, and was in good health, and that arrangements were being made for her to return to the U.S.

In a post on X, a former U.S. ambassador to Afghanistan, Zalmay Khalilzad, confirmed Hall’s release and said she would “soon be on her way home.”

Few details about Hall’s case or the release were immediately available.

Hall is believed to be the fourth American released from Afghanistan since January. Earlier this month, George Glezmann, an airline mechanic from Atlanta, was freed after more than two years in custody. That release follows a separate deal, executed on the final day of President Joe Biden’s administration and also mediated by the Qataris, that secured the releases of Ryan Corbett and William McKenty.