A man with a sword was shot and killed by police at a Church of Scientology in California on Wednesday, authorities said.

The suspect was inside the Inglewood church wielding the sword when cops arrived at about 3:30 p.m., according to police.

Officers opened fire and the man was shot in the head.

Two police officers were also shot during the melee. It was not clear whether they were struck by friendly fire.

Both officers were in stable condition

With Wires