Federal officials said that they were attempting to take into custody an undocumented Dominican immigrant. Their statement did not indicate what might have prompted the shooting.