Authorities in Pakistan have declared a curfew in a remote northwestern town after three days of fighting between Pakistani security forces and pro-Taliban militants.