Original: Several men belonging to Iraqi Sunni insurgent groups affiliated with Al-Qaida, one wearing a military uniform, had earlier entered the mosque, tied up the guards there and set explosives, resulting in the blast.
Simplified: Several men, one wearing a military uniform, had earlier entered the mosque. They tied up the guards there and set explosives, which resulted in the blast.