Taliban fighters tried to overrun a provincial capital in Afghanistan early on Friday, hiding inside homes before slipping into city streets during the night to attack security forces and killing at least 14 policemen before being pushed back, officials said.