BOSTON — David Ortiz, the beloved former Boston Red Sox star who was shot in early June in his native Dominican Republic, was released from a hospital on Friday after an extended stay, his former team said on Saturday. Ortiz was expected to return home, where he will be under the care of full-time nurses and his personal doctor, according to an ESPN report.

Ortiz, 43, who lives in Miami, had been at Massachusetts General Hospital in Boston since June 10. He was shot the night before at a bar in Santo Domingo, his hometown and the capital of the Dominican Republic, and where he returns often to visit family.

Ortiz was shot at Dial Bar and Lounge, a regular hangout of his in the eastern part of the city, in what Dominican Republic authorities have said was a case of mistaken identity. That claim has been met with much skepticism in the Caribbean nation because he is one of the most recognizable figures there.

Authorities have said that Ortiz’s friend Sixto David Fernandez, who was seated at the same table as Ortiz that night, was the intended target and that the attackers erred for various reasons. Dominican Republic authorities said they have arrested at least 14 people connected to the shooting, including Víctor Hugo Gómez, who they said was the mastermind of the attack.