Senior members of Sudan's National Intelligence Agency were on Wednesday neutralized after an attempted coup.
Linked to ousted President Omar Al-Bashir, the troops staged a mutiny on Tuesday evening, causing fierce gunfight within the capital.
But soldiers loyal to the administration in the transitional government acted swiftly, arresting a number of those involved.
"We decided to storm the bases to end this rebellion... We have now taken control of these bases," Sudan's chief of staff Lieutenant General Osman Mohamed al-Hassan told reporters early on Wednesday.
"We lost two soldiers and four others, including two officers, have been wounded.
"Government spokesman Faisal Mohamed Saleh said the rebellion was launched by some NISS agents who rejected the amount of money allocated for taking retirement.
"We will not allow any coup against the Sudanese revolution," said the chairman of Sudan's ruling council, General Abdel Fattah al-Burhan, speaking alongside the chief of staff.
Prime Minister Abdalla Hamdok condemned the attempted coup, adding that security forces will not spare rebellious soldiers.
The disgraced spy agency members are opposing changes being spearheaded by the transitional government.
Omar Al-Bashir was overthrown last year following popular uprising that was following by the military intervention.
Those arrested have been taken to military camps for questioning following the foiled coup.