Afghan civilian casualties rise as NATO pulls out