Libya’s worst bomb attack since the fall of Muammar Gaddafi hit a training center as hundreds of recruits gathered.