Is your bounty 40 gold? In some games, attacking a Dremora before he attacks you may be counted as assault. This is a very annoying glitch. Don't know how to fix it, but if you're on PC, you could just reset your crimegold.
You also might have accidentally hit one of the guards when you were assaulting the Daedra outside of the Chapel.