Three Iraqi soldiers and two Islamic State (IS) militants were killed during clashes between the two sides, the Iraqi military said on Tuesday.