一时间 is a narrative device that sets the scene: something happens suddenly or everything changes in an instant. It often begins a sentence and is followed by a dramatic shift.
grammar
Don't confuse 一时间 (narrative 'in that moment') with 一时 (temporarily/on impulse). 一时间 focuses on a specific moment in a story; 一时 describes temporary states or impulsive actions.