Police ‘warned’ agent of threat