MALAKAL, South Sudan — When the shooting started last week, Othom Bol quickly fled with his wife and their three young children to what he thought would be the safety of the United Nations peacekeeping base on the outskirts of town.

Instead, as the pitched gun battle between troops loyal to the government of South Sudan and rebels seeking to overthrow it thundered outside on Wednesday, bullets came whistling into the makeshift camp for the internally displaced at the base, striking civilians, including Mr. Bol’s daughter Nyauny, 6. The bullet hit her in the stomach, passing through her torso and exiting her back.

The girl lay in a hospital bed on the base here Saturday, metal sutures from an operation to stop the internal bleeding studding her abdomen and an intravenous tube protruding from the gauze wrapping her left hand. The base hospital, overstretched, is out of injectable antibiotics and analgesics, a doctor said.

“We’re just civilians and we really don’t know who started this,” said Mr. Bol, 27, a slender man visibly exhausted by his daughter’s ordeal, keeping vigil by her bedside each night in a gray plastic chair. He had not even noticed that he had been shot in the thumb until after he brought his daughter to the hospital. “We are victims.”