A Massachusetts service member who has been described as both a “young, racist gun enthusiast” and an internet “troll” has been arrested in connection with the series of national security leaks that have roiled the U.S. government over the past week.