The attack marked the latest salvo by insurgents who have vowed to avenge an army offensive in the nearby Swat Valley , and it underscored their ability to strike at some of the country 's most heavily fortified targets .