The federal agency that detects foreign interference said Friday it detected an attempt on Chrystia Freeland’s Liberal leadership campaign.