A gunman shot dead four people and wounded seven others in a mosque in south Yemen, security and tribal sources said Wednesday in the latest bloodshed tied to municipal elections on February 20.