A senior military commander says the advance of government forces in the Islamic State-held city of Ramadi is being hampered by suicide bombers, snipers and booby traps.

Gen. Ismail al-Mahlawi, the head of Iraqi military operations in Anbar, told The Associated Press on Thursday that the militants attacked with suicide car bombers, but they were detonated before reaching their targets.

Al-Mahlawi added that his forces "need time" to dislodge the militants from the capital of Anbar province in the face of snipers and mined buildings. He said around 50 families who had been trapped inside Ramadi had managed to reach safe areas under government control.

On Tuesday, the government reported progress in recapturing some areas in Ramadi from the militants who control about a third of Iraq and neighboring Syria.