Police shot a man armed with a knife inside Methodist Hospital in Brooklyn on Thursday, leaving him in critical condition, law enforcement sources told the Daily News.

The incident happened on the eighth floor of the Park Slope medical center at Sixth St. and Seventh Ave. shortly before 6 p.m., sources said.

Sources described the man as emotionally disturbed and wielding a knife.

Two responding police officers from the 78th Precinct initially tasered him. But either because they missed or he withstood the electric shocks, the man remained standing.

Another pair of cops then opened fire at him with their handguns, sources said.

The man was in the hospital visiting family, according to sources.

This is a developing story. Check back for updates.