U.S. and European naval officials say pirates have hijacked two European-owned tanker ships off the coast of Somalia .