More than a year of fighting has killed thousands of Somalis and displaced hundreds of thousands more , mostly from Mogadishu .