The explosion of piracy off Somalia this year has driven up insurance costs , made some shipping companies divert around South Africa and prompted an unprecedented military response from NATO , the European Union and others .