Two suicide bomb attacks near the entrance of a military base north of Baghdad and by a market in the Iraqi capital killed at least 18 people Thursday, police said.