Two migrants died and more than 400 were rescued in a joint operation off the Greek islands of Gavdos and Crete.