Observation of electronic nematicity driven by three-dimensional charge density wave in kagome lattice KV$_3$Sb$_5$