PRETORIA, South Africa — His voice shaking, Oscar Pistorius took the witness stand Monday for the first time in his murder trial, testifying that he was trying to protect the girlfriend he killed and that he became so tormented by memories of the fatal shooting and panic attacks that he once hid helplessly in a closet.
Pistorius also offered an apology to the family of Reeva Steenkamp, who died from multiple wounds after the double-amputee runner shot her through a closed bathroom door last year in his home. He said he mistook Steenkamp for an intruder. Prosecutors allege he killed her after an argument.
‘‘There hasn’t been a moment since this tragedy happened that I haven’t thought about your family,’’ the athlete said as Steenkamp’s mother, June, looked impassively at him in the courtroom.
‘‘I was simply trying to protect Reeva. I can promise that when she went to bed that night she felt loved.”
Pistorius’s display of anguish and remorse was a marked departure from the testimony of some prosecution witnesses whose accounts painted a picture of the runner as a hothead with a jealous streak, an inflated sense of entitlement, and an obsession with guns in the months before he killed Steenkamp, a 29-year-old model.
He has yet to be crossexamined about the shooting in the early hours of Feb. 14, 2013, and that testimony is likely to be the centerpiece of a trial being broadcast on television and followed around the world.
Pistorius was charged with premeditated murder and faces 25 years to life in prison if convicted. Some analysts think the judge, who will decide the case, will consider a lesser charge such as homicide, which could still send him to prison for years.
Pistorius, 27, spoke in a soft, quavering voice at the start of his testimony, prompting Judge Thokozile Masipa to ask him to speak louder. He stood at first, stifling sobs as he said he was on antidepressant medication and sometimes woke from nightmares to the ‘‘smell of blood.’’
Defense lawyer Barry Roux, who had aggressively challenged prosecution witnesses since the trial began March 3, led Pistorius gently through events in a life that was held up, in the runner’s heyday, as an inspiring tale. Pistorius 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.
Pistorius described the positive role of his mother, Sheila, and his grief when she died when Pistorius was a teenager. He spoke about the sacrifices he had made for his athletic achievements, his work with charity, and how religion was important to him.
Pistorius said he has been taking antidepressant medication since the week after he killed Steenkamp and has trouble sleeping. He described one night when he went to hide in a closet after waking up in ‘‘a panic.’’
‘‘I climbed into a cupboard and I phoned my sister to come and sit by me, which she did for a while,’’ Pistorius said.
His voice broke again, and he struggled to speak when he described how Steenkamp was ‘‘a blessing’’ in his life. Yet in cellphone messages revealed by the prosecution, Steenkamp had once said that Pistorius scared her.
Pistorius will return Tuesday to continue testifying after the judge granted an early adjournment because she said Pistorius looked ‘‘exhausted.’’
Pistorius also described how he felt vulnerable to crime, an attempt to explain his claim that he reacted to what he thought was a dangerous intruder in his bathroom by shooting with his 9-millimeter pistol. He said his mother slept with a gun under a pillow, and that his family had been hit by house break-ins and carjackings over the years.