China said it has detained three Filipino nationals suspected of spying, a move that could further strain ties between Beijing and Manila.