Somalia's foreign ministry has condemned the "brutal terrorist attack" at two mosques in Christchurch, New Zealand.
It called the two shootings "a heinous cowardly crime requiring a unified Islamic and international stand".
President Mohamed Abdullahi Farmajo tweeted that "We stand in solidarity with the New Zealand government and the Muslim community".
"We must unite to defeat the evil of terror in all its forms," he added.
Police say 49 people have been killed and at least 20 seriously wounded.
There are unconfirmed reports that some members of the Somali community in the city are among the victims.
A gunman identifying himself as an Australian live-streamed the rampage at Al Noor mosque to Facebook. He had espoused racist, anti-immigrant views.
Police say a man in his late 20s has been arrested and charged with murder.