Officials in Cleveland were investigating the police shooting of a 12-year-old boy who died on Sunday, a day after an officer shot him outside a recreation center when he reached for a weapon that turned out to be a fake pistol.

The boy, Tamir E. Rice, died on Sunday at MetroHealth Medical Center in Cleveland, the Cuyahoga County medical examiner’s office said. He was shot in the torso at a park on Saturday after witnesses reported that he was waving a gun around and pointing it at people, the police said.

Two police officers responded to the scene and ordered the boy to raise his hands, the police said, but he refused and reached for a gun in his waistband. An officer fired two shots, striking the boy once, the police said.