US President Donald Trump lashed out at a reporter over a question about an ongoing impeachment inquiry.