The Republican senator faced questions from lawmakers on the shooting during his confirmation hearing to lead the Department of Homeland Security.