National police commissioner Riah Phiyega says officers opened fire in self-defence after coming under attack from striking mineworkers at Lonmin's Marikana mine.