A Libyan militia commander was released in Egypt after Egyptian diplomats kidnapped in Tripoli were freed, Egyptian security sources said on Monday.

Libyan and Egyptian government officials said there had been no deal to free Shaban Hadia, also known as Abou Abeida, in exchange for the diplomats.

Libya’s Deputy Foreign Minister Abdul Razak Al-Grady announced on Sunday that the five Egyptian diplomats kidnapped last week in response to Hadia’s detention had been freed.