An Orlando man accused of robbing a credit union on SeaWorld grounds with three others was sentenced Thursday to 13 years and 5 months in federal prison, a U.S. attorney's spokesman said.

Joseph Cotto-Diaz, 31, of Orlando, pleaded guilty in October to aiding and abetting a credit union robbery with assault and carrying a firearm during a robbery. Another man involved in the robbery, Raulier Rivas Lopez, was sentenced to 14 years in prison in September. He pleaded guilty in June.

Cotto-Diaz, Lopez, and another suspect burst into American Eagle Credit Union with an AK-47 on SeaWorld Drive Jan. 25, 2012, court records show.

On their way to their stolen getaway van, where a fourth man was waiting, they passed through a hole in a chain-link fence, records show. Cotto-Diaz cut his head on a sharp edge and left behind some hair, which investigators later found, records show.

Orange County deputies arrested Cotto-Diaz in July 2012, after he allegedly stole sound systems from a Bose outlet store in Vero Beach, records show.

When deputies came to his Chera Court home at about dawn on July 25, Cotto-Diaz hid in the attic. After a standoff that lasted hours, deputies fired tear gas into the apartment to get him out of his hiding place.

He and Lopez were later sentenced to three years in state prison on burglary charges.