Pakistan puts rebel town under curfew after fighting