The bomb destroyed the mosque 's front wall and damaged its dome .