The Shelby County Sheriff’s Office has arrested and charged a man accused of bringing a loaded gun onto school grounds.