Swedish hostage Johan Gustafsson, who had been held captive for six years by a branch of al Qaeda in Mali, has returned to Sweden after the militants released him, the Swedish government said.