Soldiers die in Pakistan attack