Osman Ali Ahmed was shot dead Sunday as he left a Mogadishu mosque .