Effect of an atom on a quantum guided field in a weakly driven fiber-Bragg-grating cavity