BAGHDAD — A suicide bomber detonated a truck filled with explosives on the playground of an elementary school in northern Iraq on Sunday morning, killing 13 children and the headmaster, the police said. Shortly afterward, another suicide truck bomb struck a police station in the same village, killing three officers.

The two attacks in Qabak, a Shiite Turkmen village just outside Tal Afar in Mosul Province, also left 95 people wounded, 80 of them at the school.

The attacks added to a wave of violence across the country, the deadliest outbreak in Iraq since 2008. A suicide bomber attacked a group of Shiite pilgrims in Baghdad on Sunday, the police said, killing 14 and wounding 34 and raising the total death toll from terrorist attacks on Sunday to at least 31.

Abdul al-Obaidi, the mayor of Qabak, called the attack on the school “a crime against humanity” as he surveyed books splattered with blood amid the devastation on the playground. “The terrorists are trying to stop us from living and sending our children to school, but they will not, as we have our unity,” he said.