A former Michigan border patrol agent has pleaded guilty to child porn charges after being caught in a federal sting.