Politiagent hadde kontakt med drapstiltalt i tre år