JOHANNESBURG -- Preliminary investigations show that a young Somali Canadian peace activist was killed by a stray bullet this week in Mogadishu, the peacekeeping mission in Somalia said Friday, while some family members at her funeral shouted, "We want justice."

The statement by the African Union mission said Almaas Elman was hit while travelling in a car Wednesday inside a heavily defended base near the international airport where many diplomats and aid workers have offices in the Horn of Africa nation.

The former diplomat was the latest member of Somalia's diaspora to be killed after returning home to help rebuild the country after decades of conflict, including a Somali Canadian journalist who died in a bomb blast in July. Elman's family founded a prominent peace centre in Somalia and her sister Ilwad was reportedly short-listed for this year's Nobel Peace Prize.

In a statement Thursday, Ilwad Elman said her sister would be laid to rest at a mosque in Mogadishu during Friday prayers. "Thank you for all of the love."

The AU statement said there was no record of a weapon being fired inside the base at the time Almaas Elman was shot and other stray bullets had been reported previously. It called her death "heart-wrenching and unfortunate."

The sisters fled Somalia with their mother, Fartuun Adan, in the early 1990s as the country's warlord-led chaos deepened after the fall of President Siad Barre. Their father, Elman Ali Ahmed, stayed behind to run the Elman Peace centre until he was murdered in 1996.

A decade later, Adan returned from Canada to continue the work and the daughters followed. They found Mogadishu in the grip of the al-Qaida-linked al-Shabab extremist group, which had formed and spread during their time away.

Even years after the extremists were chased out of the capital by the AU force, al-Shabab still carries out bombings against hotels and other high-profile targets in the seaside city. A devastating truck bombing in Mogadishu in 2017 killed well over 500 people.

Only this year has the U.S. Embassy been re-established in Somalia, nearly 30 years after its staffers fled.

Amid the insecurity, Almaas Elman was among a growing number of young Somali professionals returning from the diaspora to help rebuild the country, rural parts of which are still controlled by al-Shabab.

She had been working with the European Union in Somalia. "We had been blessed by her energy for the last months. Her memory will be with us," the EU ambassador, Nicolas Berlanga, tweeted.

As Somalia's federal government finds its footing, the efforts of peacemakers are crucial.

Tensions between the federal government and regional states continue ahead of a presidential election as early as late next year. Security is a huge concern as the AU force prepares to withdraw and hand over security to ill-prepared Somali forces.

------

Associated Press writer Abdi Guled in Mogadishu contributed