The nature of "dark" gamma-ray bursts