Given below are a legal principle and a factual situation. Apply the given legal principle to the factual situation and select the most appropriate answer to the question given below:
Principle: Theft is robbery if in order to committing of the theft, or in committing the theft, or in carrying away or attempting to carry away property obtained by theft, the offender, for the end, voluntarily causes or attempts to cause to any person death or hurt or fear of instant death or instant hurt.
Factual Situation: A entered B's house and was taking away her wallet and leaving the house, when he encountered B. He dropped the wallet, but shot her while escaping.