A 22-year-old Kentucky soldier was charged Monday with attempted espionage and communicating military information, allegations that have shocked friends who have described him as a patriotic country boy.