Chance encounter with police saves boy