We shouldn't be assuming that just because it's a written story, every decision will make sense - that would actually make it unrealistic. People often make decisions that don't make sense, especially in moments of desperation. So it doesn't surprise me that Scully would freak out and shoot Michael.