RAWALPINDI , Pakistan ( AP ) - Gunmen wearing military uniforms and wielding assault rifles and grenades attacked Pakistan 's army headquarters Saturday , sparking a ferocious gunbattle outside the capital that left four of the assailants and eight soldiers dead , authorities said .