Ex-sailor arrested, accused of attempting to hand over sub secrets