Remember this pattern, you can also achieve this checkmate with Queen and Rook.
Continue here :
https://streptococcus.neocities.org/chess/QueenAndKing.html