这时 is the shortened form of 这时候. It is very common in written narratives and storytelling to introduce a sudden event: 这时,突然... (Just then, suddenly...).
grammar
这时 typically appears at the start of a sentence or clause. It often pairs with 才 (only then) or 突然 (suddenly) to create a dramatic shift in a story.