Mosul, Iraq’s second-largest city, was seized Tuesday by members of a militant Islamist group that was disowned by al Qaeda for being too extreme and uncompromising.