Apple said it will stop selling the devices later this month in order to comply with a U.S. import ban.