Pakistan's foreign minister has said Islamabad "strongly condemns" Houthi attacks on commercial vessels while offering condolences to the families of the dead.