One Spanish soldier was killed and two were wounded when their convoy was attacked in southern Afghanistan, the defence ministry said on Wednesday.