Authorities are piecing together days preceding Monday’s attack in which four people died in Manhattan office tower

The man who stormed a New York City skyscraper and shot dead four people before he took his own life early on Monday had constructed the rifle he used himself, from parts, the police have said.

The authorities are questioning an associate of the suspect about supplying components of the AR-15-style assault rifle used in the attack.

The New York City police commissioner, Jessica Tisch, said that the suspect in the attack in Manhattan, Shane Tamura, 27, had “assembled” the weapon himself that he used in the shooting.

The suspect also had a permit to carry a concealed gun and had used the permit to purchase another firearm, a revolver, last month, the police said.