A Royal Navy serviceman has been charged with National Security Act (NSA) offences after an investigation by counter terror police.