Solitons in a periodic structure with Kerr nonlinearity