The officials, a military officer and a police officer, say numerous roadside bombs targeted a military convoy Wednesday morning as it was traveling on a highway outside the Islamic State-held city of Ramadi.
They say that the attack in Khabaz area, about 170 kilometers west of Ramadi, also wounded 10 soldiers.
The officials spoke on condition of anonymity as they were not authorised to release information.
Iraq's government and allied Sunni fighters and Shiite militias are in the midst of a massive operation to dislodge IS militants from Anbar's cities.