A deputy died after being shot in an exchange of gunfire with a suspect on Wednesday, according to the Walton County Sheriff's Office.