An EU naval force spokesman says ransom has been paid for the release of a Singapore-flagged chemical tanker , held for nearly two months by Somali pirates .