Apple was tricked by an app into giving it a listing in the App Store where it turned out to be a pirate streaming service.