The visitors led through Hayden Carter’s header but Ben Brereton Diaz struck against his former club to turn the game in Derby’s favour.