Several people were shot when gunfire was opened during morning rush hour in a subway train in New York's Brooklyn area.