The safest bet is just to wait for a couple of minutes, observe the animal for any changes. It's going to become really clear in that time if there's distress, or just... being a dog.
Then, if you're still concerned call the police, and wait for them. If while waiting you become concerned for the dog's life, break the window.