What to do if you hacked surveillance agencies?

These people are terrorists who are out of their minds; they can shoot you, assault you, torture you, etc. Never say anything openly that could incriminate you. You can put a warrant canary to warn other people that you have been visited.

In any case, never tell them anything. If you do not receive an official document or a lawyer, you should (and have the right to) remain silent.