A man with a dog was riding on a scooter as they approached a building