A man who allegedly entered a police station and swung a hammer at an officer’s head has been charged with attempted murder.

Toronto Police Service said the incident happened Friday at about 4:20 p.m. at 31 Division on Norfinch Dr.

It began with the man entering the front lobby, holding a knife and a hammer, and approaching an officer at the front counter, police said in a statement on Saturday.

The man then “raised the hammer above his head, and swung it at the head of an officer,” police said. “(The) officer was able to avoid a direct impact, but did receive a glancing blow to her head.”

The officer then arrested the man with help from a colleague, who ended up also injured in the process.

They received minor injuries and were treated in a hospital, police said, though they have since been released.

Norman Badria, 41, of Brampton, also faces two counts of carrying a concealed weapon, two counts of weapons dangerous and one count each of assault with a weapon and assaulting a peace officer.

He is scheduled to appear in court on Thursday.