BAGHDAD — At least 23 Iraqi soldiers and government-allied militiamen were killed Sunday in an attack by Islamic State militants in the turbulent Anbar province west of Baghdad, Iraqi military and police officials said. The officials said Sunday’s attack, which killed 17 soldiers and six Sunni militia fighters, took place in the rural district of Jaramshah, north of Anbar’s provincial capital, Ramadi. The officials spoke on condition of anonymity because they were not authorized to speak to the media. They said the Islamic State fighters used suicide bombings and mortar shells and that chief of army operations in Anbar, Maj-Gen.