The FSB security agency says a US man named Paul Whelan has been charged with spying.