WASHINGTON — Four American military personnel have been detained in Libya and were in the Libyan government’s custody, an American official said on Friday.