Militant advance in Iraq may endanger fractious region