The district police chief explained how he had mistakenly applied for a program that aids federal immigration agents. The application is no longer being considered.