The European Union 's anti-piracy naval force says Somali pirates have hijacked a North Korean-flagged cargo ship .