A 28-year-old man died Thursday after being struck by lightning while walking in a Cary parking lot, according to authorities.