defensively
When someone is defensively, they are acting in a way that is designed to protect themselves or to protect someone else. They might be defensive because they are angry or because they are afraid.
He was defensive when he said that he didn't do it.
She was defensive when she said that she didn't know what you were talking about.