The Iraqi army and popular forces warded off the terrorists' attack on the city of Mosul, inflicting heavy losses and casualties on the militants.