Dog caught in trap gets second chance