Suicide bombers have attacked a mosque and a religious school in two Pakistani cities, killing a well known anti-Taliban cleric.