The usual answer is Tennis for Two, created in October 1958 by physicist William Higinbotham at Brookhaven National Laboratory, using an oscilloscope as a display.
It depends on your definition, though. Earlier candidates include the cathode-ray tube amusement device patented in 1947, a purely analogue device with no computer behind it, and OXO in 1952, a tic-tac-toe game running on the EDSAC computer that displayed on a CRT.
Tennis for Two tends to win the title because it was genuinely interactive, genuinely fun, and demonstrated the core idea in a form recognisably like a modern game. The commercial industry arrived later still, with Computer Space and then Pong in the early 1970s.