Maersk's decision comes in response to an attack by the Yemeni Armed Forces on its container ship in the Bab al-Mandab Strait on Thursday.