This phrase is used here to mark the beginning of a new part of the story.
The word "behold" alerts us to the surprise that Tamar was carrying twins, which was previously unknown.