The man went from house to house in a village near the town of Visoko, attacking 10 people with a knife, three of whom died, police spokeswoman Aldina Ahmic said.

"Some information indicates that the man was mentally ill but we are still checking," Ahmic told Reuters by telephone from the central Bosnian town of Zenica.

Two seriously injured adults and four children underwent surgery and were in stable condition, said Biljana Jandric, a spokeswoman for the Sarajevo Kosevo hospital. A mother of two was treated for facial cuts and released.

The attacker was wounded in the head and was also in the hospital, she said.