Gilbert Sorrentino , a Brooklyn-born poet , novelist , literary critic and professor whose erudite work drew frequent praise and occasional scorn but never a wide audience , died on Thursday in Brooklyn .