Reports were that she was shooting through the windows at the police outside. Those were probably the shots the cops heard once they were on the second floor - and guiding them to her location.
That’s kinda what I figured, she was either watching or shooting out the window when they found her.