A troubled Air National Guard unit is grappling with seemingly rampant misbehavior within its ranks, particularly among its noncommissioned officers, including sexist and racist discrimination, inappropriate jokes and a generally poor working environment.