Security forces surrounded the mosque and ordered him to surrender .