I accidentally killed a chicken, and now people hate me. How do I get them to like me again?
Leave the area for a few in game days. If you return, people will like you again.
Equally, find a guard and sheath your weapon. Then go to prison or pay your bounty.