The boats sank in waters off the city of Sfax, a departure point often used by African migrants.