A suicide bomber targeted an anti-militancy protest in Pakistan, killing at least 14 people and injuring more than 18.