A Yemeni police official says two boys died when a bomb they found in their village school yard went off.

The official says Monday's blast occurred when the students passed the device around during recess in the school in al-Shayem, a village near the capital, San'a.

The official says a 17-year-old and a 7-year-old were killed, and five other students were wounded.

The official spoke Tuesday on condition of anonymity because he wasn't authorized to speak to the media.

It's unclear how the bomb got into the school yard. Yemen is flooded with guns, and armed conflicts between government forces and tribesmen are widespread.

Two young sons of a Guantanamo detainee were killed in April, when a grenade they were playing with at home exploded.