Ett gäng som med helikopter flugit hasch från Marocko till Spanien har stoppats med hjälp av svensk polis, meddelar spansk polis.