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

State television said the driver was a teenager on the run after killing his uncle. He triggered the blast after officers surrounded his vehicle south of the capital, Riyadh, on Thursday evening.

State news agency SPA named the bomber as Abdullah Fahd Abdullah al-Rashed. It said he was born in 1997 and had never travelled outside of the kingdom.

ISIL claims responsibility for Saudi mosque attack

SPA named the dead uncle as Rashid Ibrahim al Safyan, adding that Safyan had been a colonel, without elaborating.

The Islamic State of Iraq and the Levant (ISIL) group has called on supporters to carry out attacks in the kingdom and killed 25 people in two suicide bombings at Shia Muslim mosques in the country's east in May.

"While security officers were manning one of the security checkpoints on Ha'er Road in Riyadh, they directed the driver of a suspected car to stop. The driver initiated an explosion which led to his death," the interior ministry said in a statement.

The Ekhbariya state TV station, citing unidentified sources, said the teenage driver had killed his uncle that afternoon, and then ran off with his car.

The driver tried to drive bypass the checkpoint, then set off an explosive as security forces tried to surround him, it added.

Source: Reuters