please help me understand - pinned piece
Here's a position similar to what you are asking. Why can't the White king take the black knight since its defending rook is pinned?
Just ask yourself this simple question: Who would be able to capture the opponent's king first? If White could take the Black knight, then Black would take the White king before White could take the Black king.