A young man has been charged after his online activity was probed by a counter terrorism investigation.