Very creative, especially since one removes one's shoes before entering a mosque.
Still, the bomber could have put the explosives inside himself or in his garments and detonated the bomb. The shrapnel made the IED more lethal and easier to detect, had there been a WTMD + a puffer machine.
The bottom line is this: life is dangerous and all the "security" in the world will not stop a determined murderer, especially one who is willing to go down with the ship.
"Live your life, Murphy." - Jay Billington Bulworth