(NTC military spokesman's quote)
* NTC says it has captured Bani Walid
* Not clear if whole town under its control
* Fighting continues in Sirte, no sign of advance (NTC military spokesman's quote)
By Barry Malone
TRIPOLI, Oct 17 (Reuters) - Libyan interim government forces said on Monday they had raised the country's new flag over Bani Walid after securing control over most parts of the desert town -- one of the last bastions held by loyalists of Muammar Gaddafi.
Ahmed Bani, the interim government's military spokesman, told reporters in the capital Tripoli: "Ninety percent of Bani Walid has been liberated."
Along with Gaddafi's hometown of Sirte, Bani Walid is one of the last places in the vast North African nation where there is still armed resistance to the rule of the National Transitional Council (NTC).
Colonel Abdullah Naker, head of the Tripoli Revolutionist Council, had told Reuters on Sunday: "We have reached the city centre and have raised the flag".
Fighters taking part in the assault on Bani Walid told Reuters they had entered the town, which is nestled in rocky hills some 150 km (90 miles) south of Tripoli.
Bani Walid is an ancestral home to the Warfalla, Libya's biggest tribe and one of its most politically influential. The Warfalla number about one million out of the country's six million population and were traditional supporters of Gaddafi.
The town has been under siege for weeks, with hundreds of Gaddafi loyalists dug into its steep valleys and hills resisting advancing interim government forces.
As well as ordering the military assault, NTC officials have been negotiating with Bani Walid's tribal leaders for its surrender.
A group claiming to represent the people of the town offered a truce to Libya's new government on Monday. The tribal groups said they would pledge loyalty to the NTC and take over the town, but demanded in return the NTC withdraw its forces from the area and lift the siege.
It was not clear how the government would respond or whether NTC forces had already completely captured the town.
In Sirte, where Gaddafi loyalists have been under siege for weeks, there was little or no sign of the disorganised NTC forces making any progress on Monday and, amid chaos and confusion, in some places they had even been pushed back.
A doctor for the medical aid charity Medecins Sans Frontieres in Sirte has estimated 10,000 people remain trapped in the city of 75,000. Many are women and children, some are sick or injured.
NTC tanks and rockets bombarded a small area of central Sirte where they have boxed in the remaining Gaddafi loyalists. Libya's new leaders say they will only begin the transition to democracy after they capture the city.
Frustration is growing on the front line. Some fighters are irritated their commanders have not ordered a big push to take the rest of the city.
There is also anger between government forces from Misrata to the west and Benghazi to the east, who have accused each other of hitting their allies in "friendly fire" incidents.
"What we are trying to do is to limit attacks from the east and west to avoid friendly fire, and instead attack from the south," said Mohammad Al Sabty, a field commander.
"We have lost a lot of martyrs in recent days," said Mustafa Salim from a Misrata brigade. When Misrata units get close to Benghazi units "it gets harder," he said. "They fire at us and we fire at them."
Many NTC fighters abandon their positions at nightfall for more comfortable quarters further from the front line. That allows Gaddafi's men to infiltrate the lines during the night and fire at them, sometimes from behind.
Government forces captured 15 Gaddafi loyalist fighters on Monday, all of them black, a Reuters witness said. Gaddafi armed many sub-Saharan Africans to fight for him and black people have been subject to arbitrary reprisals by the NTC forces.
Some government fighters present tried to hit the newly captured prisoners, but were held back by more senior officers and the 15 men were marched off to the rear as NTC forces laid down suppressing fire at nearby snipers.
The new government's forces have been accused of mistreating prisoners and Amnesty International said in a report last week it was in danger of repeating some of the abuses of Gaddafi's rule, particularly through the use of arbitrary detention.
British Foreign Secretary William Hague said he would raise the issue at a meeting later in the day with the head of the NTC in Tripoli. "It's very important they keep the moral authority by treating people well," Hague told reporters.
The often chaotic struggle for Sirte has killed scores of people, left thousands homeless and laid waste to much of what was once a showpiece Mediterranean city where Gaddafi entertained foreign leaders. (Additional reporting by Rania El Gamal and Tim Gaynor in Sirte, Suhaib Salem and Yasmine Saleh in Tripoli; Writing by Jon Hemming and Joseph Nasr; Editing by Tim Pearce)