Gunmen killed eight people in an attack Monday on a Pakistani army camp in a city where hard-line Islamists stopped on their way to the capital to protest the decision to reopen the NATO supply line to Afghanistan, police said.