Four migrants, including two children, died when a boat struck rocks near the Greek island of Samos, with 16 others rescued.