Tunisia said Monday that it was negotiating for the release of 172 nationals being held by a Libyan militia as bargaining chips for one of its commanders detained in Tunis.