US chicken manufacturer Pilgrim's Pride returned to profit in the first half of its financial year but has warned of "challenges" ahead.