The Anglo-Zanzibar War fits your criterion, in part because it was so short, but it was also conducted with civil restraint. The new Sultan was suspected of assassination and violated a British treaty by occupying the palace. The British attempted negotiations and finally issued an ultimatum to vacate the palace at 0900. Half an hour before a final attempt at negotiation was attempted and the British made it clear they would open fire.
The palace grounds were fired upon. A single Zanzibar naval vessel was sunk when it fired at the British fleet. Surrender was accepted 38 minutes later. The British landed troops to help put out the fire and patrol the streets. The sultan fled to the German consulate who escorted him out of the country.
About 500 people were killed in the bombardment and subsequent fire. It's difficult to know who was civilian and who was not; the palace was defended, in part, by a hastily raised militia. The British gave ample warning of their intent to fire for them to have been evacuated.
The First Barbary War between the United States and the Barbary pirates matches your criterion. The cause was clear: Tripoli demanded their traditional protection money from the US and the US refused to pay. Tripoli declared war on the US by chopping down the flag in front of the US consulate (according to Wikipedia, this is traditional). The US Congress did not formally declare war, but ordered that armed American vessels were to to seize all vessels and goods of the Pasha of Tripoli "and also to cause to be done all such other acts of precaution or hostility as the state of war will justify." Tripoli harbor was blockaded by a multinational force and raids were conducted against their fleet.
After years of blockades and raids, a US mercenary force approached Tripoli by land via Derne. The US commander requested safe passage and supplies. The city governor refused, reportedly with "My head or yours!". The American's target was a fort and the governor's palace. I have no mention of civilian casualties, but city battles are never pretty, and mercenaries aren't the best behaved.
Soon after the capture of Derne, with Tripoli threatened and the blockade being bad for business, the pasha surrendered. A treaty was signed declaring a "inviolable and universal peace, and a sincere friendship", exchanging all prisoners, ending the blockade, and withdrawing from Derne. Curiously, after refusing to pay tribute, the US agreed to pay ransom for American prisoners.