Militant attack kills six soldiers in Iraq