Ex-Brooklyn prosecutor gets jail time for wiretapping love interest