The Danish ship is part of an international anti-piracy force patrolling the waters off Somalia .