A three-year joint operation by Spanish and Italian police has resulted in the seizure of 2.7 tonnes of hashish in the Spanish region of Andalusia.