A ship was travelling at sea when it exploded violently and made a loud noise.