(CNN) -- Somalia needs international help to fight Islamist extremists battling for power in the lawless Horn of Africa nation, the country's moderate Islamist president said Monday.



Sheikh Sharif Sheikh Ahmed was recently appointed Somalia's transitional president.



"I am calling on the international community to help Somalia defend against foreign militants who have invaded the country," President Sheikh Sharif Sheikh Ahmed said.



Speaking at a news conference in Somalia's capital city, Mogadishu, Ahmed called several times for international help in fighting foreign militants whom he claims are the same fighters who have fought the "international community" in Iraq and Afghanistan.



"Wherever they come, they fuel violence," the president said. "The Somali people cannot and should not accept that their countries should be a launching pad for these militants to attack."



Ahmed told local journalists that he feared these foreign fighters would turn Somalia into another Iraq or Afghanistan, where U.S.-led forces are fighting Islamic extremist groups.



He also praised local militias in the two regions of Hiiran and Middle Shabelle for struggling against the foreign militias.



Last week, al-Shabab militants advanced to the presidential palace in Mogadishu, sparking sporadic fighting and shelling in the Somali capital. The recent fighting has killed more than 40 civilians and wounded about 150 others, according to sources at the scene.



Al-Shabab -- once the armed wing of the Islamic Courts Union -- has been designated as a terrorist group by the United States, which says it is affiliated with the al Qaeda terrorist network.



Ahmed participated in seizing control of Mogadishu in 2006 along with the Islamic Courts Union before it was ousted by Ethiopian forces later that year.



He has since split from Somali jihad movements and was recently appointed Somalia's transitional president through a process shepherded by the United Nations.



Journalist Mohamed Amiin Adow contributed to this report.
Where is the conference held? What is the name of the President? How many civilians were killed? Who did the U.S. say Al-Shabab militants are affiliated with? What does Ahmed fear will happen to Somalia? Where is Ahmed speaking? Who will speak at a conference in Mogadishu? Fighting in 2 days killed how many? Where will fighters turn? Who fears foreign fighters will turn Somalia into another Iraq or Afghanistan? How many has the fighting killed in the past two days? What  kills more than 40 civilians? Who are the Al-Shabab Militants affiliated to Who is speaking at a conference in Mogadishu? What does Ahmed Fear foreign fighters will do? Who are Al-Shabab militants affiliated with? where is the conference the president is speaking at?
in Somalia's capital city, Mogadishu, Sheikh Sharif Sheikh Ahmed 40 the al Qaeda terrorist network. foreign fighters would turn at a news conference in Somalia's capital city, Mogadishu, President Sheikh Sharif Sheikh Ahmed 40 civilians Somalia into another Iraq or Ahmed more than 40 civilians The recent fighting al Qaeda terrorist network. Sheikh Sharif Sheikh Ahmed Afghanistan, al Qaeda terrorist network. Mogadishu,
question: Where is the conference held?, answer: in Somalia's capital city, Mogadishu, | question: What is the name of the President?, answer: Sheikh Sharif Sheikh Ahmed | question: How many civilians were killed?, answer: 40 | question: Who did the U.S. say Al-Shabab militants are affiliated with?, answer: the al Qaeda terrorist network. | question: What does Ahmed fear will happen to Somalia?, answer: foreign fighters would turn | question: Where is Ahmed speaking?, answer: at a news conference in Somalia's capital city, Mogadishu, | question: Who will speak at a conference in Mogadishu?, answer: President Sheikh Sharif Sheikh Ahmed | question: Fighting in 2 days killed how many?, answer: 40 civilians | question: Where will fighters turn?, answer: Somalia into another Iraq or | question: Who fears foreign fighters will turn Somalia into another Iraq or Afghanistan?, answer: Ahmed | question: How many has the fighting killed in the past two days?, answer: more than 40 civilians | question: What  kills more than 40 civilians?, answer: The recent fighting | question: Who are the Al-Shabab Militants affiliated to, answer: al Qaeda terrorist network. | question: Who is speaking at a conference in Mogadishu?, answer: Sheikh Sharif Sheikh Ahmed | question: What does Ahmed Fear foreign fighters will do?, answer: Afghanistan, | question: Who are Al-Shabab militants affiliated with?, answer: al Qaeda terrorist network. | question: where is the conference the president is speaking at?, answer: Mogadishu,