Ответ:

The correct answer is **while**.

**Explanation:** While connects two actions that were ongoing simultaneously in the past: the dog was barking and we were sleeping.