Gunfire rang out at two buildings used by Sudan's National Intelligence and Security Service on Tuesday.
Images from the Riyadh base, close to the airport, show a crowd gathering at a roadside junction. Reportedly men wearing facemasks and military uniform set up a checkpoint nearby.
Sudanese Minister of Information Faisal Mohamed Salah confirmed in a televised address that loyal security officers managed to stop the armed protest of 'rebellious forces'.
Khartoum airport temporarily suspended all operations for security reasons.
NISS officers, who were the security arm of Sudanese former president Omar al-Bashir, and sought to quash last year's demonstrations, have been told to retire or join the Rapid Support Forces, a unit accused of crimes against humanity during the war in Dafur.