On the homotopy type of certain groups of operators