Method and device for repairing a defect or a damage on a metalic piece of material