Harper acknowledges Afghan defeat