The woman was charged with threatening a United States official and is expected to appear in federal court in Boston on Thursday, authorities said.