In the beginning, they may have froze out of pure shock. Neither of them are used to direct confrontation. Mashiro's sheltered and Nagisa was too busy studying to interact with people.
The second encounter, I think the reason why Nagisa froze and why Mashiro's afraid are one and the same. The...