A gunman fired on a Dallas immigration field office from a nearby roof, killing one detainee and critically wounding two others, before killing himself.