Indonesia’s chief security minister is urging passage of a counterterrorism bill that would allow preventive detention of suspected terrorists for up to six months, part of a response to a deadly attack in Jakarta that received support from Islamic State.