Qaeda briefly plants flag in Iraq, 23 troops killed