Higher-order quantum spin Hall effect in a photonic crystal