Federal judge dismisses lawsuit filed by AK-47-toting man in