post a screen with your reputation status, also did you try to loot dead npc b4 the patrol ?
update:
I have checkd it:
- player was looting b4 the guards moved back on their positions.
note: Allow NPC to loot 1st, then you can loot if anything left, also do not loot close to npc - You will get warning to step back, if you wont do it, you will get shot.