The FBI arrested a national guardsman who is suspected of being behind a major leak of sensitive US government secrets.