Ukrainian police have freed the remaining hostages being held in a post office by a man believed to be strapped with explosives.
Police arrested the hostage-taker after an hours-long standoff in the city of Kharkiv on Saturday.
"All hostages freed in Kharkiv. The assailant was arrested," President Petro Poroshenko wrote on Twitter, while Interior Minister Arsen Avakov published a picture of the man, with blood streaming down his face, being held by a policeman.
None of the hostages were harmed. A Reuters witness at the scene saw special force police in green camouflage rushing to the entrance of the post office, a yellow-and-white building at a road junction in the northeastern city near the Russian border.
In earlier statements, police said the man had entered the post office wearing a mask and taken 11 people hostage with the intention of robbing the place.
Five of the hostages - three women and two children - were released early.
Police said they had been in contact with the man via the telephones of the hostages, describing his manner as calm and not making any demands.
Anton Gerashchenko, an adviser to Avakov, said employees at the post office and customers had been among the hostages. One of them had managed to call the police from inside the building.
"The patrolmen came to the place of the robbery in a few minutes," Mr Gerashchenko wrote on Facebook.
"The robber realised that he could not now safely leave the crime scene with the loot and he decided to declare that he was taking everyone hostage."
One of the children released by the hostage taker told local media that the man had put explosives into two bottles and threatened to blow himself up if police did not listen to him. The man also said he had brain cancer, according to the child.
The man at one point voiced concern about the recent prisoner exchange between the Ukrainian authorities and pro-Russian separatists and thought more prisoners should have been released, police said.
Ukraine and the separatists swapped hundreds of prisoners on Wednesday in the biggest such exchange since the outbreak of a conflict in the eastern Donbass region that has killed more than 10,000 people.