She didn't shoot Sherlock in the head because she never wanted to kill him! That's the whole point of Sherlock asking her to show him her marksmanship. That way he finds out that she could have killed him if she wanted to. She calculated that she could get to him later and convince him not to tell John.