Head of Greek intelligence resigns over surveillance scandal