Aldon Smith has apologised to the San Francisco 49ers after he was put on indefinite leave by the team in order to enter rehab.