Security forces repelled the attack, Iraq's defence ministry said in a statement mourning the loss of a colonel and a number of others from the regiment.