A suicide bomber killed 13 people and injured 23 in northwest Pakistan Monday, in an attack which the Taliban said was revenge for the hanging of an Islamist assassin last week.