Saudi Arabia's counterterrorism court has convicted two former military officers on terrorism charges, including supporting al-Qaida attacks on Saudi officials and "rejoicing" at an assassination attempt against the kingdom's deputy interior minister.

Interior Minister and Crown Prince Mohammed bin Nayef was wounded in a 2009 al-Qaida attack when he was deputy interior minister. The two former officers were also found guilty of promoting extremist ideology and disobeying the king.

Six other defendants were also convicted in the same case on a range of terror-related charges. The eight men received sentences of up to 17 years in prison.

Semi-official Saudi news websites carried a statement about the verdicts and sentences by the Specialized Criminal Court in Riyadh on Monday, though it did not specify when the verdicts were handed down.