A companion of the black youth severely beaten last month in Howard Beach , Queens , in what the authorities called a hate-crime attack by whites , was arrested on Sunday night and charged with participating in a gunpoint robbery aboard a subway train in Brooklyn , the police said yesterday .