A gunman has killed two Bosnian soldiers and injured three civilians after he opened fire with an automatic rifle at a betting shop and then against a public bus driving by.

Police spokesman Irfan Nefic said the attack occured Wednesday evening in the Sarajevo suburb of Rajlovac and that the two soldiers were killed instantly in the betting shop. The attacker then shot at a public bus and fragments of the broken glass injured the driver and two passengers.

Nefic said an investigation is under way and that it is too early to say what motivated the attack.