Lincoln man charged in shootout with police takes plea deal