The Tamar, a Marshall Islands-flagged bulk carrier, was about 1,300 miles offshore of Cape Cod, Mass., at 7 a.m., when the captain called the Coast Guard to report the explosion, officials said. The fire from the explosion, which occurred in the forward storeroom, has been extinguished, and the cause is not yet known.