Iraqi troops regained control of the central city of Samara on Thursday hours after militant groups some part of city in sudden attacks, security officials said.