Officials in Iraq say two bomb attacks in the country have killed at least seven people and wounded about 20 others .