The man who carried out a deadly shooting in a Minneapolis apartment building had been investigated in June after displaying a handgun, but wasn’t charged, the county prosecutor said Thursday.

Police didn’t name the suspect, who was also dead, but said they were “familiar with who this individual was.”

Two people were killed and several others were injured after gunfire broke out in a high-rise apartment building in downtown Minneapolis on Wednesday, authorities said.