Two deputy U.S. marshals were shot early Friday morning in the Bronx as they tried to arrest a 35-year-old man sought in connection with the shooting of a state trooper in Massachusetts, the authorities said. The man, Andre K. Sterling, was killed as he exchanged fire with the deputies, who were expected to survive, the authorities said.