Heralded single excitation of atomic ensemble via solid-state-based telecom photon detection