The city of Macerata’s Twitter account says the gunman was captured about two hours after he began a shooting rampage from a black automobile