Detection of a dark substructure through gravitational imaging