Authorities in eastern Libya executed 10 people convicted by military courts on terrorism-related charges, sparking outcry from rights groups. This was reported by Qazaqyia.kz citing Associated Press.

The office of the military prosecutor in eastern Libya announced on Sunday that 10 people had been executed by firing squad after yearslong trials. The office is overseen by the self-styled Libyan National Army, commanded by powerful Gen. Khalifa Hifter, which controls eastern and southern parts of Libya.

The people were convicted of charges ranging from joint terrorist groups to assassinations of military personnel and civilians, the office said in a statement. The statement did not provide further details about the charges, or when and where the executions took place, but said they were executed after "all legal procedures" were concluded.

Local media reported that the executions took place in the notorious Qarnada military prison in the northeastern town of Shahat, and that families were notified to receive bodies from a hospital in Benghazi.

Rights groups condemned the executions and questioned the trials. The National Institution for Human Rights in Libya said military trial of civilians "raises fundamental questions concerning jurisdiction, judicial independence, and guarantees of a fair trial." The group called for Libya's chief prosecutor and judicial authorities to investigate the executions and all procedures taken through their trials.

It cited a Constitutional Court ruling that said the trial of civilians before military courts for terrorism-related offenses and crimes against the state was unconstitutional.

International rights groups have repeatedly criticized the detention and sometimes execution of people after unfair trials. Amnesty International has said that Libya has retained the death penalty for a wide range of offenses, with courts in both eastern and western Libya continuing to impose death sentences for murder following "grossly unfair trials."

Libya was plunged into chaos and division after a NATO-backed uprising that toppled and killed its longtime autocrat Moammar Gadhafi in 2011. The country has been divided for years between rival administrations in the east and west, each backed by armed groups and foreign governments.

Samy Magdy, a Middle East reporter for The Associated Press based in Cairo, covers conflict, migration, and human rights abuses.