A bomb attack which killed three foreign aid workers in Somalia on Monday underlined the difficulty in delivering aid in the anarchic country that has been wracked by clan violence for 17 years , he said .