One person was taken to the hospital after a package exploded inside a South Boston apartment building overnight.