NZ Navy takes over anti-piracy mission