The application for a search warrant was filed by one of the officers who was killed, just hours before the ambush.