PRETORIA, South Africa — South African police appointed a new chief investigator Thursday in the Oscar Pistorius murder case, replacing a veteran detective after unsettling revelations that the officer was charged with seven counts of attempted murder.
The sensational twist in the state’s troubled investigation fueled growing public fascination with the case against the double-amputee Olympian, who is charged with premeditated murder in the Valentine’s Day slaying of his girlfriend, Reeva Steenkamp.
Pistorius, a sporting icon and source of inspiration to millions until the shooting last week, is backed by a high-powered team of lawyers and publicists. The abruptness of his fall, and its gruesome circumstances, have gripped a global audience and put South Africa’s police and judicial system under the spotlight.
The man at the center of the storm sat in the dock during his bail hearing, mostly keeping his composure in contrast to slumped-over outbursts of weeping on previous days in court. In front of Pistorius, defense lawyer Barry Roux pounced on the apparent disarray in the state’s case, laying out arguments that amounted to a test run for the full trial yet to come.
Roux pointed to what he called the ‘‘poor quality’’ of the state’s investigation and raised the matter of intent, saying Pistorius and Steenkamp had a ‘‘loving relationship’’ and the athlete had no motive to plan her killing.
Pistorius, 26, says he mistook Steenkamp for an intruder when he shot her through a locked bathroom door in his home. Prosecutors believe the shooting happened after the couple got into an argument, and prosecutor Gerrie Nel painted a picture of a man he said was ‘‘willing and ready to fire and kill.’’
Much of the drama Thursday, however, happened outside the courtroom as South African police scrambled to get their investigation on track.
National Police Commissioner Riah Phiyega said a senior detective would gather a team of ‘‘highly skilled and experienced’’ officers to investigate the killing of 29-year-old Steenkamp, a model and budding reality TV contestant.
The decision to put police Lieutenant General Vinesh Moonoo in charge came soon after word emerged that the initial chief investigator, Hilton Botha, is facing attempted murder charges, and a day after he offered testimony damaging to the prosecution.
Botha acknowledged Wednesday in court that nothing in Pistorius’s version of the fatal shooting contradicted what police had discovered, even though there have been some discrepancies. Botha also said that police left a 9 mm slug in the toilet and lost track of allegedly illegal ammunition found in Pistorius’s home.
‘‘This matter shall receive attention at the national level,’’ Phiyega told reporters after testimony ended in the third day of Pistorius’s bail hearing.
Bulewa Makeke, spokeswoman for South Africa’s National Prosecuting Authority, said the attempted murder charges had been reinstated against Botha on Feb. 4. Police say they found out about it after Botha testified in Pistorius’s bail hearing Wednesday.
Botha and two other police officers had seven counts of attempted murder reinstated against them in connection with a 2011 shooting incident in which they allegedly fired shots at a minibus they were trying to stop.
Makeke indicated the charges were reinstated because more evidence had been gathered. She said the charge against Botha was initially dropped ‘‘because there was not enough evidence at the time.’’
On Thursday, Chief Magistrate Desmond Nair asked the defense regarding Pistorius’s bail application: ‘‘Do you think there will be some level of shock if the accused is released?’’
Roux responded: ‘‘I think there will be a level of shock in this country if he is not released.’’
Nel suggested signs of remorse from Pistorius had nothing to do with whether he planned to kill his girlfriend.
‘‘Even if you plan a murder, you plan a murder and shoot. If you fire the shot, you have remorse. Remorse might kick in immediately,’’ Nel said.
As Nel summed up the prosecution’s case opposing bail, Pistorius began to weep in the crowded courtroom, leading his brother, Carl Pistorius, to reach out and touch his back.
‘‘He [Pistorius] wants to continue with his life like this never happened,’’ Nel went on, prompting Pistorius, who was crying softly, to shake his head.
‘‘The reason you fire four shots is to kill,’’ Nel persisted.
Roux said an autopsy showed that Steenkamp’s bladder was empty, suggesting she had gone to the bathroom to use the toilet, rather than fled there to escape an enraged Pistorius, as prosecutors contend.
‘‘The known forensics is consistent’’ with Pistorius’s statement, Roux said, asking that bail restrictions be eased for his client.
Earlier Thursday, Nair questioned Botha over delays in processing records from phones found in Pistorius’s house following the slaying.
‘‘It seems to me like there was a lack of urgency,’’ the magistrate said.
Botha is to appear in court in May to face seven counts of attempted murder in connection with the minibus shooting incident. He has been quoted in the South African media as denying allegations he was drunk at the time, saying he and the other officers were trying to stop the vehicle and didn’t know there were people inside.