You hit a mine.
Reveal every safe square. Numbers count nearby mines.Right-click to place a flag. Avoid the red.