The bombers, who struck two checkpoints, were affiliated with the Islamic State group, sources say.