Idaho State Police are investigating an accidental gunshot inside a patrol vehicle that occurred after officers arrested a 63-year-old suspect near Mountain Home schools.