KB Home’s strong results and upbeat outlook pleased Wall Street analysts, but the home builder’s stock pulled back from a 16-year high.