Nonlinear localization of chirped femtosecond pulse in layered photonic structure