Officer smashes window to save dog locked inside hot car