The fighting came days after Pakistani security forces attacked a militants ' camp used to train terrorists .