Influence of Kerr-like medium on a nonlinear two-level atom