A gunman opened fire at a disco in southern Germany early Sunday, killing two and wounding four before being shot by police.