A police officer and at least four other people were shot and killed — and several others injured — by a crazed gunman who stormed a swanky Midtown skyscraper early Monday evening — before turning the gun on himself, sources said.

The 27-year-old maniac, identified by sources as Shane Tamura, barged into the 44-story building — which houses Blackstone and the NFL headquarters — armed with a rifle and opened fire at around 6:30 p.m. during the evening rush, law enforcement sources told The Post.

Surveillance image of a man carrying a rifle.The 27-year-old maniac, identified by sources as Shane Tamura, barged into the 44-story building. Obtained by NY Post

Mugshot of Shane Devon Tamura.Armed with a rifle, he opened fire at around 6:30 p.m. during the evening rush, law enforcement sources told The Post. Obtained by the NY Post

Follow The Post’s live updates on the midtown NYC shooting: