Dubai-bound ship survives pirate attack off Somalia