A 22-year-old man was arrested and charged with murder in connection with a fatal shooting earlier this week in Cary.