Three explosions in Baghdad, including a car bomb opposite the foreign ministry, killed at least seven people and wounded more than 20 others on Wednesday, security and medical officials said.