Palestinian militants have attacked a police station in the West Bank town of Nablus , sparking a gunfight with Palestinian police .