A NATO warship went head-to-head with a live swarm of attack drones in a high-stakes trial off the UK coast.