The head of U.S. Customs and Border Protection has resigned as agents encounter record numbers of migrants entering the U.S. from Mexico.