The testimony by boxer Kevin Lerena relates to firearms charges against Pistorius, and raises questions about the character of a man who insists he accidentally shot dead Reeva Steenkamp in his home in the early hours of Feb. 14 last year. Prosecutors allege he intentionally shot Steenkamp, his 29-year-old girlfriend.
Lerena said the restaurant shooting happened when he and Pistorius and two other friends were in a restaurant in the swank Melrose Arch area of Johannesburg in January 2013. One friend, Darren Fresco, passed his gun to Pistorius under the table and told him that there was a bullet in the chamber, Lerena said. Then a shot went off, puncturing the floor near Lerena's foot, he said.
"There was just complete silence," said Lerena, who described being in shock and having blood where his toe was grazed in the incident. Then, he said, Pistorius apologized, saying: "Are you OK? Is everybody OK?"
Before the restaurant management approached the table, Lerena said, Pistorius asked Fresco to say he was responsible for the gunshot.
"'Just say it was you. I don't want any tension around me,'" Lerena remembered Pistorius saying. "'There's too much media hype around me.'"
Lerena said they paid the bill and left the restaurant and he never spoke about the incident. Two days after Pistorius shot Steenkamp, he said, he woke up to find over 100 missed calls on his telephone as media from around the world tried to contact him to ask about the gun incident.
Chief defense lawyer Barry Roux attempted to establish it was noisy in the restaurant, which the manager testified Wednesday was full with over 200 customers, and that Pistorius did not hear Fresco say the gun was "one-up" - or that there was a bullet in the chamber - when he passed it.
But Lerena's testimony that Pistorius asked a friend to "take the rap" wasn't challenged.
"He (Pistorius) did say, 'Fresco, take the blame because this could be big.'" Lerena said in court.
The wife of the restaurant manager also said in her brief testimony that the shot went off near to where a child was sitting.
Pistorius, the world-famous athlete and first amputee to run at the Olympics, is charged with murder and three other offenses: Two relating to the shooting of a gun in public and another count of illegal possession of ammunition. He pleaded not guilty to all four charges.
Earlier Wednesday, Roux sought to undermine the prosecution testimony of a couple who say they heard a woman's screams and gunfire the night that Pistorius killed Steenkamp. Telephone records will show that the banging sounds the neighbors heard were not gunshots but a distressed Pistorius breaking down the toilet door with a cricket bat after realizing he had shot Steenkamp when she was in the toilet, thinking it was an intruder, Roux asserted.
Throwing doubt on the witnesses' recollection of the sequence in the early hours is crucial for Pistorius' defense after the state maintained there was a loud argument on the night he shot Steenkamp through a door in his bathroom and the screams and shouts were before a gun was fired.
Pistorius' team wants to show the screams were Pistorius calling for help after the accidental killing and before he used the bat on the door.
Charl Johnson and his wife Michelle Burger have testified to hearing a woman screaming, a man shouting for help and then gunshots. During his cross-examination of Johnson, Roux said call records will show Pistorius called an estate manager at around 3:19 a.m. and soon after he bashed in the door with the bat.
In Johnson and Burger's testimony, they say they heard what they described as shots straight after making a call to security at 3:16 a.m. The similar times show the sounds were the bat on the door, Roux argued.
"There is only one thing you could have heard, because it coincides precisely," Roux said to Johnson. "That was the time that he (Pistorius) broke down the door (with the bat)."
Johnson replied: "I am convinced the sound I heard was gunshots."
Pistorius, 27, was a globally admired athlete whose career peaked when he ran in the 2012 Olympics. He was born without fibula bones because of a congenital defect and his legs were amputated when he was 11 months old. He ran on carbon-fiber blades and is a multiple Paralympic medalist. He also competed at the London Olympics but didn't win a medal.