Kevin Murchison was in court Friday and is being held without bond.
Police say Wednesday afternoon he tried to rob a 15-year-old. There was a struggle and the gun went off, striking the student in the leg.
Murchison is charged with several counts including aggravated battery and attempted armed robbery.