A federal agent shot and injured a man after he allegedly assaulted the agent Wednesday night.