
If they glitched under ground, bring up console, select them and kill or moveto player to get them out. You can also select an attacker you killed, resurrect, kill again, repeat if needed. In survival you save before going to an attacked settlement, then load if it glitches.
Full Answer