In series of attacks, ISIL fighters kill at least 27 Iraqi soldiers and wound 16 more west of strategic city, army says.