Apple says it has pulled illegal lottery apps from its App Store in China. The move comes amid tightening regulation and criticism from state media.