An Indian Navy sailor, taken into custody on suspicion of connections to Pakistani espionage, was brought before a court in Vijayawada.