Just walk or run to the next cell (loading zone), that usually clears the issue. You can also use the killall command in the console, but it will take out friendlies also.
I dont; think the console commands to stop combat would work as the NPC would go back into that mode unless you calmed them. You might try tcai (stops combat) or tdetect (NPCs can't detect you) but I don't know if this works just for the cell you are in, or all cells until you toggle it. Although once out of the cell, you could toggle it back.