They were driven to a different part of the city , made to stand against a wall in front of a mosque and then sprayed with gunfire .