A Toronto man faces nine charges including attempted murder after a police officer’s gun went off at a rowdy party early yesterday.

“It looks like the officer’s pistol was fired,” said Sgt. Winston Wong from Toronto police headquarters.

A male suspect tried to disarm the officer and the gun went off as a result of a struggle outside the party, police said.

Police were initially called to Cedarcroft Boulevard in North York for a noise complaint at about 12:45 a.m., Wong said.

Two ambulances were called but there were no injuries, Wong said. The suspect and two officers were taken to hospital for a precautionary examination.

Sgt. James Cowan of 32 Division said the partygoers fled after the gun was fired.

Police then combed the area for evidence and spoke with whatever witnesses they could find during the early hours of the morning.

Investigators would not elaborate on details of the struggle.

Yordan Grigorov, a Toronto man in his 20s, is facing nine charges, including attempted murder, assaulting a peace officer with a weapon and two counts of disarming a peace officer.