TORONTO — A Somali-Canadian who returned to his homeland last year to serve as a member of Parliament has arrived back in Toronto for medical treatment after being injured in a suicide bombing.

Sooyaan Abdi Warsame, 42, was among more than a dozen people injured when an Al-Shabab car bomb exploded outside the Hotel Maka in Mogadishu on the evening of Nov. 8. Six died in the attack.

He flew to Toronto from Dubai on Monday. He has shrapnel wounds but no broken bones or head injuries, his brother Liban Warsame said Tuesday. “He was going to the hospital this morning,” he said.

Mr. Warsame had lived in Toronto since the early 1990s and worked at various jobs including truck driving. The son of a minister who was in government before Somalia’s collapse, he returned to help rebuild the troubled African country and was named to the Federal Parliament of Somalia in August 2012.

Somalia is now emerging from decades of lawlessness and violence. With the help of an African Union peacekeeping force sanctioned by the United Nations, Somalis have beaten back an armed Islamist insurgency.

Hundreds of Somalis from Canada and other countries have been returning to Mogadishu to revive the former Italian colony, but Al-Shabab has continued to lash out with attacks in Somalia as well as in neighbouring Kenya.

In September, four Al-Shabab gunmen massacred 67 people at the Westgate shopping mall in Nairobi. Two Canadians were among the dead, including Annemarie Desloges, a Canada Border Services Agency officer posted at the Canadian high commission.

Al-Shabab was also behind the bombing 12 days ago at the Hotel Maka, a popular hangout for Mogadishu’s government and business elite. Among those killed was Abdulkadir Ali Dhuub, who had served as Somalia’s acting ambassador to London.

The car bomb was wrapped with sharp objects, some of which struck Mr. Warsame. His brother said the injuries were “minor” but that Mr. Warsame was too tired to be interviewed and was not himself. “He’s very quiet — unusual for him because he’s a very, very talkative guy.”

Hassan Abdillahi, a popular host on the Somali-language Toronto FM station Radio Ogaal, said diaspora members like Mr. Warsame have been flocking to Mogadishu to serve in government, set up businesses and work for non-governmental organizations.

“They’re making an effort,” he said. But because they are helping bring stability, governance and change to Somalia, they find themselves in Al-Shabab’s crosshairs. “The bad thing is, they will be the targets,” he said.

According to the Public Safety Canada website, Al-Shaba is “an organized but shifting Islamist group dedicated to establishing a Somali caliphate, waging war against the enemies of Islam, and removing all foreign forces and Western influence from Somalia.”

Canada outlawed Al-Shabab as a terrorist organization in 2010, after the group began recruiting Canadian youths. Following the attack in Nairobi, Somali-Canadians held a rally in Toronto to condemn Al-Shabab.