Former Justice Secretary Alex Chalk has called for the UK to challenge the European Court of Human Rights over restrictions on deporting foreign prisoners to countries like Afghanistan.