Spanish helicopter crash in Afghanistan kills 17