The attack compounded the tragedy after an explosion on Wednesday collapsed a three-story apartment building and ravaged adjacent houses just minutes after the Iraqi army arrived to investigate tips about a weapons cache .