#include <bits/stdc++.h>
#define ll long long
using namespace std;
const ll MOD=1000000007;
int main(){
int t;cin>>t;
while(t--){
	int n,k;cin>>n>>k;
	int a[n];
	for(int i=0;i<n;i++){
		a[i]=i+1;
	}
	if(n%2==0){
		if(k>(n/2 -1)){
			cout<<-1<<"\n";
		}
		else{
			int i=1;
			while(k>0&&i<n){
				swap(a[i],a[i+1]);
				i+=2;k--;
			}
			for(int i=0;i<n;i++) cout<<a[i]<<" ";
			cout<<"\n";
		}
	}
	else{
		if(k>(n/2)){cout<<-1<<"\n";}
		else{
			int i=1;
			while(k>0&&i<n){
				swap(a[i],a[i+1]);
				i+=2;k--;
			}
			for(int i=0;i<n;i++) cout<<a[i]<<" ";
			cout<<"\n";
		}
	}
}
}
