A senior officer of the South African Police Service, Major General Feroz Khan, has been shot and wounded in what authorities are investigating as an attempted murder, just days before he was due to testify before a high-profile judicial inquiry into alleged corruption within South Africa's criminal justice system.

The suspended national deputy head of crime intelligence was attacked late Sunday in an affluent suburb of Johannesburg. According to national police spokesperson Athlenda Mathe, Khan underwent surgery and is recovering in hospital.

Khan was scheduled to appear on Wednesday before the Madlanga Commission, a judicial panel that has been hearing testimony since September into allegations of corruption and misconduct involving senior members of the police service.

The senior officer was suspended in May following his arrest over allegations of illegal dealings in precious metals. Investigators have also linked him to claims involving organised crime syndicates, illicit tobacco trafficking and drug-related theft, allegations that remain under investigation.

Despite the timing of the attack, police cautioned against drawing premature conclusions about its motive.

In a statement, authorities said it would be "premature and irresponsible to speculate on any possible motive or to conclude that the incident is linked to his anticipated appearance before the Commission."

The investigation is being led by detectives with support from the elite Directorate for Priority Crime Investigation, commonly known as the Hawks, alongside the Political Killings Task Team, highlighting the seriousness and sensitivity of the case.

The Madlanga Commission was established by Cyril Ramaphosa in July last year following allegations that senior political and police officials obstructed investigations into politically motivated killings. The commission's live televised hearings have intensified public scrutiny of South Africa's law enforcement and justice institutions.

Several prominent figures, including Senzo Mchunu and other senior police officials, have already appeared before the inquiry, with some currently suspended or on leave pending the outcome of ongoing investigations.

The latest attack has further heightened concerns over the safety of witnesses and whistleblowers involved in the inquiry. In December, a key witness connected to the commission was assassinated, raising fears of intimidation and violence linked to the ongoing proceedings.

Authorities say investigations into the shooting are ongoing, with no arrests announced as of the time of filing this report.