An Ocala police officer dies after he was accidentally shot during firearms training, the department said Monday.