A man who blamed his surgeon for continuing pain after a recent back surgery bought an AR-style rifle hours before he opened fire at a Tulsa medical office, killing the surgeon and three other people and then fatally shooting himself, police said Thursday.