A car exploded at a checkpoint in Riyadh near Saudi Arabia's highest security prison, killing the driver and wounding two security officials, the interior ministry said.