Seven suspects were detained after a hijacking involving stowaways on a tanker off the Isle of Wight.