The suspect accused of killing two deputies was also fatally shot in an exchange of gunfire with law enforcement, authorities said.