A ship carrying 20,000 tonnes of explosives offloaded part of its cargo off the UK coast, before docking in Norfolk.