Navy snipers pick off three pirates, and the hostage captain is rescued. Here's a link to CNN.
Don't mess with the U.S. (or more accurately, don't mess with the U.S. when it has Navy SEAL snipers readily available)
Also, this was never going to end well for the pirates. Hostage-taking only works if you have a place to hide, not in the middle of the ocean.