Homes were destroyed and around 40 people were wounded during the attack in Bannu , a town in Pakistan 's troubled Northwest Frontier Province .