The man suspected of killing 18 people and injuring 13 others at a bar and a bowling alley in Lewiston on Wednesday night was found dead of an apparent self-inflicted gunshot wound Friday, officials said, ending a sweeping search that had forced thousands of residents throughout the region to remain in their homes.