The Wake County Sheriff’s Office was investigating a shooting at a privately owned Raleigh gun shop Tuesday afternoon after an attempted robbery led to an exchange of gunfire.