An 11-year-old schoolboy was put on a watch list after "discrediting" the army on social media.