Somalia 's prime minister has ordered all aid agencies operating in the country to register with the government or leave .