Jordan’s ambassador abducted last month in Libya has been released by his captors and is on his way home, the kingdom’s foreign minister said on Tuesday.

Ambassador Fawaz al-Etan was taken by gunmen from his vehicle in central Tripoli near the Jordanian Embassy on April 15. Assailants opened fire on his car, wounded his driver and then forced him out at gunpoint.

It was one of the latest abductions in the North African nation still plagued by lawlessness more than two years since the country’s 8-month civil war ended with Muammar Gaddafi’s killing in October 2011.

Jordan’s Foreign Minister Nasser Judeh gave no other details in announcing Mr. al-Etan’s release. The kingdom’s Information Minister Mohammad al-Momani told AP that Mr. al-Etan was in good health and was returning home on a military plane.

A week after the ambassador’s abduction, Jordan released a Libyan detainee, Mohammed al-Darsi, who was arrested and convicted in 2007 of trying to carry out a suicide bombing at Amman’s Queen Alia International Airport.

Jordanian officials at the time would not say whether the Libyan detainee’s release was connected to Mr. al-Etan’s abduction.

According to a Libyan official, al-Darsi arrived in Tripoli on Monday on a special plane from Amman. The same Jordanian aircraft took the ambassador home on Tuesday, said the official, speaking on condition of anonymity because he was not authorized to talk to media.

The kidnappings in Libya reflect the weakness of the country’s politicians and officials in the face of powerful militias that have become both the enforcers of the law and the fuel of lawlessness after successive governments following Gaddafi’s ouster came to depend on them to restore order in the absence of a strong police force or military.

Both diplomats and journalists have been among those targeted in the kidnappings. In January, gunmen briefly held six Egyptian diplomats and embassy employees following the arrest of a Libyan militia leader in Egypt. The diplomats were released only after Egypt freed the detained militia commander.

Most of the abductions, however, have targeted Libyan officials, including senior members of the government, and their families.

More In: International | News | World