Turkey detains 1,300 migrants in swoop after EU deal