Man accused of officer attack has criminal past