Anzhi Makhachkala recovered from a goal down to defeat Hannover 3-1 in the first leg of their Europa League last-32 clash.