OK! has learned that Alec Baldwin had a bit of an episode outside his apartment yesterday after accusing a photographer of assaulting him.

The 30 Rock star — who was reportedly rushed to a hospital on Wednesday night with chest pains — returned to his Upper West Side pad after a day at the studio to find a group of photographers waiting for him.OK! NEWS: ALEC BALDWIN’S REP TELLS OK! HE’S FINE

We hear from people on the scene that Alec smiled happily at the paps as he got out of his Town Car, but the scene turned ugly just before he walked in the building.

“Suddenly he turned to a photog and says, ‘You touched me,’ ” an onlooker tells OK!.

According to the witnesses, the Emmy-winner went into his building, began screaming to staff in the lobby to call the police, and moments later eight cops arrived at the scene.

“Then Alec Baldwin bum rushes the doors going completely crazy and screaming, ‘This is the guy who guy who did it!’ ” the witness tells OK!.

“He lunges at the guy and grabs the guy by the arms and starts pulling him toward him. Their arms were locked and you could see Alec’s bicep bulging under his shirt.”

According to the witness the scene ended as quickly as it started, with Alec walking back into the apartment building.

NYPD representatives told OK!: “There was some arm-grabbing. No crime was committed.”