An explosion onboard a cargo ship near the site of the Key Bridge collapse in Baltimore prompted the closure of the Fort McHenry federal channel, Port of Baltimore officials said Tuesday.