Extension theorems and a connection to the Erdős-Falconer distance problem over finite fields