Tsunami alert after quake off Nicobar, revoked later