They say the 28-year-old Somali man tried to break into cartoonist Kurt Westergaard's home Friday night with an ax and knife, while the artist hid in a panic room with his granddaughter.
The suspect was rolled into court on a stretcher because he was shot by an officer at the scene.
The cartoonist angered the Muslim world three years ago with his depiction of the prophet Muhammed.