A minor suspected of planning an attack in Moscow has been detained following information received from the United States, Russian officials say.