RIYADH—As Yemen ratchets up a military offensive against al Qaeda, Saudi Arabia is pressing a surprisingly costly battle of its own against rebels along Yemen’s northern border.

Prince Khaled bin Sultan, the kingdom’s assistant minister of defense and aviation, said 82 Saudi soldiers had died in the fighting as of last week, with another 470 injured and 21 missing. The death toll took many analysts by surprise.

“Of...