From the latest news reports, it sounds like the hijacked Maersk vessel's crew did the correct thing and counter-attacked the pirates. Reminiscent of the 9/11 passengers, but with a more positive result.
Always have the mindset of protecting you and your mates/family/friends. Don't rely on someone else to do what you need to do. Do it as smartly as you can, but do protect yourselves.