Spanish police have arrested a man whose alleged plan to sell a fake Leonardo da Vinci painting in Italy for €1.3m was thwarted when the work caught the eye of French customs officers.