Second-order topological phases protected by chiral symmetry