Why do you expect murderous bigots to behave in normal ways?
None of us know, because none of us were there. But Occam’s Razor suggests that the killing was premeditated well in advance.
BTW: linguistic tip. The phrase “a transgender” reads as objectifying. “A trans person” or “a person who is trans” would be the more normal usage.