The singer’s apology comes in the wake of the documentary, “Framing Britney Spears,” which reminded fans of Justin Timberlake’s controversial past behavior.