Tim Bergling, the Swedish disc jockey and music producer who performed as Avicii, died Friday in Oman, his representative confirmed. He was 28.