Suspect charged with trying to shoot jailer