On Monday , pirates released a Greek-owned cargo ship they captured two months earlier , after receiving a payment of some $ 3 million .