Ответ:

He was telling his friends a frightening story when somebody knocked at the door.